1
這是一個有點混亂,這adb.exe只是在正確的道路......爲什麼我在eclipse中無法運行android?
月食我使用的版本爲Build ID:
Eclipse Java EE IDE for Web Developers.
Version: Juno Release
Build id: 20120614-1722
我ADT的版本是:
20.0.3
我從android控制檯得到的錯誤消息如下,爲什麼錯誤發生?
[2012-09-26 12:17:40 - android] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.httpclient.HttpMethodBase$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-09-26 12:17:42 - android] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-09-26 12:17:48 - android] ------------------------------
[2012-09-26 12:17:48 - android] Android Launch!
[2012-09-26 12:17:48 - android] The connection to adb is down, and a severe error has occured.
[2012-09-26 12:17:48 - android] You must restart adb and Eclipse.
[2012-09-26 12:17:48 - android] Please ensure that adb is correctly located at 'D:\Tools\sdk-tools\android-sdk-windows\platform-tools\adb.exe' and can be executed.
更重要的是,一旦我開始Android模擬器,我可以找到它使用:
adb devices
,但我不能在ADT的設備視圖中找到它,爲什麼呢?
重新啓動你的eclipse它沒有錯誤。 –
與同樣的錯誤,我也試過adb kill-server,adb start-server,沒用...... – hugemeow
你可以嘗試以admin用戶身份運行你的eclipse嗎?右鍵單擊eclipse啓動圖標並以管理員用戶身份啓動。看看現在會發生什麼。 – VendettaDroid