2 woyaoxianzaixiazai woyaoxianzaixiazai 于 2017.01.17 14:24 提问

android studio up-to-date异常

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.umeng.socialize.b.b) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.umeng.socialize.a.d) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is not an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class

2个回答

woyaoxianzaixiazai
woyaoxianzaixiazai   2017.01.17 14:30

1、在proguard-rules.pro 里面加上-keepattributes EnclosingMethod
2、如果还是有问题在主项目build.gradle这里添加这句
defaultConfig {
multiDexEnabled true
}这是超过65536方法
3、还有你生成了你自己的签名文件

woyaoxianzaixiazai
woyaoxianzaixiazai   2017.01.17 14:31
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!