【问题标题】:Updating Android SDK to latest and ADT 19将 Android SDK 更新到最新版本和 ADT 19
【发布时间】:2012-05-07 06:47:35
【问题描述】:

我正在使用 eclipse Indigo 和最新的 sdk 和 ADT 19 进行我的 android 开发。

修复以下问题后出现以下错误:
http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17

Dx warning: Ignoring InnerClasses attribute for an anonymous inner class  
(com.sun.org.apache.xpath.internal.functions.SecuritySupport12$8) 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.  

Unable to execute dex: Java heap space  
Conversion to Dalvik format failed: Unable to execute dex: Java heap space  

【问题讨论】:

  • 您真的阅读了这条消息吗?解决方案似乎很清楚:The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options.
  • 怎么做?对不起。我是个菜鸟……我不明白这是什么意思?

标签: java android adt dalvik heap-memory


【解决方案1】:

从警告消息看来,使用 indigo 升级到 ADT-19 后编译器设置不正确,请尝试检查 java 编译器设置。

【讨论】:

    猜你喜欢
    • 2012-06-28
    • 1970-01-01
    • 2014-08-20
    • 2013-01-29
    • 1970-01-01
    • 1970-01-01
    • 2019-03-30
    • 1970-01-01
    • 2019-08-12
    相关资源
    最近更新 更多