Android studio 2.2 Error:warning: Ignoring InnerClasses attribute for an anonymous inner class错误
来源:互联网 发布:iphone网络制式怎么看 编辑:程序博客网 时间:2024/05/21 00:20
在使用百度地图SDK开发的过程中报错,虽然不影响运行,但是不能打包。
报错如下:
Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.b) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a.k) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a.l) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a.m) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a.n) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.a.o) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.b.b.d) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.c) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.c.k) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.c.i) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.c.j) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.c.l) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.e.b) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.e.c) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner classError:(com.baidu.location.e.i) that doesn't come with anError:associated EnclosingMethod attribute. This class was probably produced by aError:compiler that did not target the modern .class file format. The recommendedError:solution is to recompile the class from source, using an up-to-date compilerError:and without specifying any "-target" type options. The consequence of ignoringError:this warning is that reflective operations on this class will incorrectlyError:indicate that it is *not* an inner class.Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
解决办法:
在proguard-android.txt中加入:-keepattributes EnclosingMetho
如下:
-keepattributes EnclosingMethod#保证百度类不能被混淆,否则会出现网络不可用等运行时异常-keep class com.baidu.** {*;}-keep class vi.com.** {*;}-dontwarn com.baidu.**
问题解决,编译、运行、打包都没问题了~~
0 0
- Android studio 2.2 Error:warning: Ignoring InnerClasses attribute for an anonymous inner class错误
- android studio错误,Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Android Studio Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- android开发 签名打包时错误Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
- BGA焊盘设计的一般规则
- hadoop那些事儿_1
- python数据挖掘环境搭建(安装scikit)
- 栈
- 成长型企业管理难题解决方法
- Android studio 2.2 Error:warning: Ignoring InnerClasses attribute for an anonymous inner class错误
- 每天一个Linux命令(18): locate命令
- SVN打开版本库浏览器看不到某目录,但通过本地该目录的log再打开版本库浏览器就能看到目录
- java调用python脚本文件大盘点
- React Native 之读取JSON 文件
- React安装
- 每天一个Linux命令(19):find命令
- faster-rcnn
- Retrofit2使用手册-基础一