Connection with adb was interrupted.
0 attempts have been mde to reconnect.
You may want to manually restart adb from the Devices view.
發生狀況 :
模擬器能開啟卻無法載入
接手機到PC,Logcat有顯示訊息,但無法載入
解決方法 :
1 . 下命令提示字元 ( cmd )
2 . setx _JAVA_OPTIONS - Djava.new.preferIPv4Stack=true
目前看到所有的解法可以參考
1 . DDMS -> 硬體清單右上角( 倒三角 ) -> reset ADB
2 . cmd -> D: -> D:\Android_SDK\sdk\platform-tools
-> adb kill-server ->adb start-server
3 . 在 eclipse.ini 底下新增
openFile
-vmargs
-Djava.net.preferIPv4Stack=true
4 . 關閉Window防火牆
參考資料 : 來源1( V )
I am afraid, it is not proxy. Nor the antivirus.
I had the same problem and neither helped.
But your Eclipse simply can't reach a site because java 7 by default
makes Eclpse to reach it throught the protocol IP6, that is not really supported by Eclipse,
at least in versions till 4.3.
Go to cmd,
use : setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
restart eclipse and it will work.
參考資料 : 來源2
參考資料 : 來源3
歡迎轉載,請註明出處。
沒有留言:
張貼留言