Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(cn.bmob.v3.util.Tempest) 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.
解决办法如下:
在app下的build.gradle-->android{}中 添加
原因网上很多,Android Studio的代码规范比Eclipse要严格好多,所以很多第三方不是很好的支持Android Studio规范,只需要在release时忽略这些警告。还有就是Android Studio的混淆规则也要严格很多,所以要完善混淆文件
在app下的build.gradle-->android{}中 添加
lintOptions {
//lint 遇到 error 时继续 构建
abortOnError false
//build release 版本 时 开启lint 检测
checkReleaseBuilds false
// 防止在发布的时候出现因MissingTranslation导致Build Failed!
disable 'MissingTranslation'
}
原因网上很多,Android Studio的代码规范比Eclipse要严格好多,所以很多第三方不是很好的支持Android Studio规范,只需要在release时忽略这些警告。还有就是Android Studio的混淆规则也要严格很多,所以要完善混淆文件