【问题标题】:why i failed to run android in eclipse?为什么我无法在 Eclipse 中运行 android?
【发布时间】:2012-09-17 15:43:28
【问题描述】:

adb.exe 只是在正确的路径上有点令人困惑......

我使用的eclipse版本是Build id:

Eclipse Java EE IDE for Web Developers.

Version: Juno Release
Build id: 20120614-1722

我的广告版本是:

    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, useless...
  • 您可以尝试以管理员用户身份运行您的 Eclipse 吗?右键单击 Eclipse 启动图标并以管理员用户身份启动。看看现在会发生什么。
  • 是 adb.exe 存在于 D:\Tools\sdk-tools\android-sdk-windows\platform-tools\ 下吗?
  • stackoverflow.com/a/11262706/582571 检查此链接。它可能对你有用。我认为由于库支持而出现错误。

标签: android eclipse android-emulator adb eclipse-adt


【解决方案1】:

我不确定,但我希望您能从这个How can i update my ADT in eclipse? 获得帮助。请试试这个。也许你会成功你的问题。祝你好运!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-10-15
    • 2022-01-14
    • 1970-01-01
    • 2011-05-21
    • 1970-01-01
    • 2020-05-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多