warning: Ignoring InnerClasses attribute for an anonymous inner class

 Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
 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.

出现这个问题的愿意很简单。

就是android sdk tools版本过低,升级一下就可以了

 

但是在3.5的eclipse里面进行升级会遇到问题,如果升级到最新的version 16,则会出现错误:

adt版本过低,和sdk tools不兼容的情况,如果要升级ADT(最新的是16.0.0了),则又提示eclipse版本过低,所以成了一个死循环,

 

解决办法:

1,sdk 还是升级

2,下载ADT  14.0.0版本 (这个版本对eclipse的要求3.5就够了,而且正好能够解决sdk升级的问题) 

路径:http://ishare.iask.sina.com.cn/f/20743747.html?from=like

3,安装上adt 即可

Help------Install New software

 

装完重启,问题解决

你可能感兴趣的:(Android)