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
總結
以上是生活随笔為你收集整理的Android SDK Manager 在win8.1上的闪退问题【转载】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python 日常小技巧
- 下一篇: Android AlertDialog学