Android SDK Manager 在win8.1上的闪退问题【转载】

全新安装的Windows 8.1的系统,Android SDK,JDK都是最新的版本,但是SDK Manager打开是命令行窗口一闪而过,就再没反映了。

通过搜索,确定了一个问题就是SDK目录tools\lib下有个find_java.bat,本来的作用是查找jave.exe的路径,但是路径输出错误。find_java.bat是在sdk\tools\Android.bat下调用的,网上的解决方法是不使用find_java.bat,直接在Android.bat中写入java的绝对路径,将

set java_exe=
call lib\find_java.bat
if not defined java_exe goto :EOF

修改为

set java_exe=“java的绝对路径”
rem call lib\find_java.bat
rem if not defined java_exe goto :EOF

修改完成之后SDK Manager的确可以打开了,但之后有遇到了另一个问题,Ant打包的时候出错,draw9patch.bat也出现闪退,看来find_java.bat在很多地方都用到了。

通过查看Ant的错误信息,有C:\Program不是合法的命令的字样,所以意识到,是不是JDK安装路径的空格问题啊,我的JDK是按默认安装到C:\Program Files文件夹。

所以,卸载重装,安装到C:\JAVA文件夹,重新配置环境变量,一切问题解决

http://t.163.com/event/info/eventId/-6311398649372061122
http://t.163.com/event/info/eventId/6087163539003191221
http://t.163.com/event/info/eventId/8891099104139277706
http://t.163.com/event/info/eventId/2664314130649791040
http://t.163.com/event/info/eventId/-8898459687955842800
http://t.163.com/event/info/eventId/-8391155966960513046
http://t.163.com/event/info/eventId/-7899003602842800800
http://t.163.com/event/info/eventId/6115326872184301567
http://t.163.com/event/info/eventId/5519071587867303439
http://t.163.com/event/info/eventId/205801731818790841
http://t.163.com/event/info/eventId/-4061981545916175286
http://t.163.com/event/info/eventId/7373101409993813309
http://t.163.com/event/info/eventId/310440197646731561
http://t.163.com/event/info/eventId/1256105831930890812
http://t.163.com/event/info/eventId/-261423367729048342
http://www.66zhuang.com/zxkc/shareinfo/1038.html
http://www.66zhuang.com/zxkc/shareinfo/1039.html
http://www.66zhuang.com/zxkc/shareinfo/1040.html
http://www.66zhuang.com/zxkc/shareinfo/1041.html
http://www.66zhuang.com/zxkc/shareinfo/1042.html
http://www.66zhuang.com/zxkc/shareinfo/1043.html
http://www.66zhuang.com/zxkc/shareinfo/1044.html
http://www.66zhuang.com/zxkc/shareinfo/1045.html
http://www.66zhuang.com/zxkc/shareinfo/1045.html
http://www.66zhuang.com/zxkc/shareinfo/1047.html

转载于:https://www.cnblogs.com/zxm995/p/3321256.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值