跪求大神给绝招。
引入银联插件的时候出现了这个问题。
运行和编译app 的时候就会报错。 百度和谷歌之后,重新导入jar包,删除bug.keystore 防止过期,
http://stackoverflow.com/questions/35796144/progaurd-issue-warningignoring-innerclasses-attribute-for-an-anonymous-inner-c 这个解决方法也试验了。还是不行。实在不懂。所以跪求大神指点一二。
Information:Gradle tasks [:assembleRelease]
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:prepareComAndroidSupportAppcompatV72221Library UP-TO-DATE
:prepareComAndroidSupportDesign2220Library UP-TO-DATE
:prepareComAndroidSupportRecyclerviewV72400Alpha1Library UP-TO-DATE
:prepareComAndroidSupportSupportV42400Alpha1Library UP-TO-DATE
:prepareComGithubChrisbanesPhotoView126Library UP-TO-DATE
:prepareComGithubZhaokaiqiangKlogLibrary140Library UP-TO-DATE
:prepareComTencentBuglyCrashreport129Library UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:compileReleaseJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:lintVitalRelease
:prePackageMarkerForRelease
:transformClassesWithDexForRelease
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.unionpay.mobile.android.pboctransaction.a) 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.unionpay.mobile.android.pro.views.h) 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.unionpay.mobile.android.widgets.ay) 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.unionpay.mobile.android.widgets.bb) 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.
:mergeReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForRelease
:processReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease
:validateExternalOverrideSigning
:packageRelease
:zipalignRelease
:assembleRelease
Information:BUILD SUCCESSFUL
Information:Total time: 52.426 secs
Information:1,032 errors
Information:0 warnings
Information:See complete output in console
引入银联插件的时候出现了这个问题。
运行和编译app 的时候就会报错。 百度和谷歌之后,重新导入jar包,删除bug.keystore 防止过期,
http://stackoverflow.com/questions/35796144/progaurd-issue-warningignoring-innerclasses-attribute-for-an-anonymous-inner-c 这个解决方法也试验了。还是不行。实在不懂。所以跪求大神指点一二。
Information:Gradle tasks [:assembleRelease]
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:prepareComAndroidSupportAppcompatV72221Library UP-TO-DATE
:prepareComAndroidSupportDesign2220Library UP-TO-DATE
:prepareComAndroidSupportRecyclerviewV72400Alpha1Library UP-TO-DATE
:prepareComAndroidSupportSupportV42400Alpha1Library UP-TO-DATE
:prepareComGithubChrisbanesPhotoView126Library UP-TO-DATE
:prepareComGithubZhaokaiqiangKlogLibrary140Library UP-TO-DATE
:prepareComTencentBuglyCrashreport129Library UP-TO-DATE
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:compileReleaseJavaWithJavac
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:compileReleaseNdk UP-TO-DATE
:compileReleaseSources
:lintVitalRelease
:prePackageMarkerForRelease
:transformClassesWithDexForRelease
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(com.unionpay.mobile.android.pboctransaction.a) 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.unionpay.mobile.android.pro.views.h) 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.unionpay.mobile.android.widgets.ay) 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.unionpay.mobile.android.widgets.bb) 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.
:mergeReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForRelease
:processReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForRelease
:validateExternalOverrideSigning
:packageRelease
:zipalignRelease
:assembleRelease
Information:BUILD SUCCESSFUL
Information:Total time: 52.426 secs
Information:1,032 errors
Information:0 warnings
Information:See complete output in console
解决方案 »
- 再次求助。Source not found。问题
- 请教这样一个布局该怎么写?谢谢
- 关于gridview的问题!!!!!!
- android service中的Thread能使用Service中的数据么?
- Andorid 上传视频抛出java.lang.outofmemoryError
- layout配置xml问题
- 现在北京Android(应用)开发什么行情?
- eclipse 执行快捷键?
- Android自动化测试工具MonkeyRunner输入参数问题
- 幻灯片制作
- android中SVG矢量图动画问题,((Animatable) drawable).start();异常
- 有哪位大神用过android 自带的mediacodec 做过音频的解码
只要不是BUILD ERROR就是正常的。至于你说的混淆是需要好好测试的。
-keep class com.unionpay.mobile.android.**{*;}
defaultConfig {
multiDexEnabled true
}
如果打包混淆的时候报错的话,加上这句会好些
参考一些这个网址,个人感觉是版本问题
-keepattributes EnclosingMethod