Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 银联

上海-浦东-小无知了 2016-06-08 02:15:41
跪求大神给绝招。
引入银联插件的时候出现了这个问题。
运行和编译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
...全文
25895 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhyou110z 2017-12-06
  • 打赏
  • 举报
回复
兄弟,这警告去掉了没
txjfss 2017-07-14
  • 打赏
  • 举报
回复
7楼的兄弟说的是对的,解决了我的大问题,太感谢了
合格的程序员 2017-05-06
  • 打赏
  • 举报
回复
在proguard-rules.pro中添加以下代码: -keepattributes EnclosingMethod
奋斗的小鸟、 2017-03-31
  • 打赏
  • 举报
回复
楼主,我也遇到了这个问题,试了说的好几种方法,但是还是不行,请教一下,怎么解决的,麻烦您了
air青 2017-02-22
  • 打赏
  • 举报
回复
我也有这个警告,app可以运行,但是调支付控件的时候调不起来,有这种情况吗?
赵海博Code 2017-02-16
  • 打赏
  • 举报
回复
http://www.cnblogs.com/morag/p/5598219.html 参考一些这个网址,个人感觉是版本问题
我叫顾小五 2017-02-15
  • 打赏
  • 举报
回复
添加了multiDexEnabled true还是报错BUILD FAILED!!!
dashan618 2017-02-09
  • 打赏
  • 举报
回复
引用 7 楼 qq_33507967 的回复:
在主项目build.gradle这里添加这句 defaultConfig { multiDexEnabled true } 如果打包混淆的时候报错的话,加上这句会好些
你好. 请问这句的作用是什么呢? 谢谢
  • 打赏
  • 举报
回复
10,其实我也不是很清楚,但是我的项目里出现了跟楼主一样的问题,我查了下,添加了这个东东我的就可以了
水手辛巴 2017-01-22
  • 打赏
  • 举报
回复
这个问题 你就不用操心了,是他们sdk的问题
chaozhidan 2017-01-22
  • 打赏
  • 举报
回复
楼主解决了没有,我也遇到了同样的问题,但是程序可以运行的,怎么解决这些提示啊
  • 打赏
  • 举报
回复
在主项目build.gradle这里添加这句 defaultConfig { multiDexEnabled true } 如果打包混淆的时候报错的话,加上这句会好些
qq_20298581 2016-09-22
  • 打赏
  • 举报
回复
楼主解决了吗?我遇到一样的问题
  • 打赏
  • 举报
回复
在progaurd文件里面加这个试试 -keep class com.unionpay.mobile.android.**{*;}
qq_35875185 2016-09-07
  • 打赏
  • 举报
回复
楼主是否解决了问题?想请教一下。
jklwan 2016-07-19
  • 打赏
  • 举报
回复
引用 2 楼 Myson_is_zhanglin 的回复:
我的确是用了Android studio导致会出现这些问题,不过运行会正常,但是这个项目需要上线,会不会影响打包混淆?
Information:BUILD SUCCESSFUL 只要不是BUILD ERROR就是正常的。至于你说的混淆是需要好好测试的。
Myson_is_zhanglin 2016-07-19
  • 打赏
  • 举报
回复
引用 1 楼 jklwan 的回复:
这是android studio的bug,看着有1000多个error,但是运行没有错的。
我的确是用了Android studio导致会出现这些问题,不过运行会正常,但是这个项目需要上线,会不会影响打包混淆?
jklwan 2016-06-08
  • 打赏
  • 举报
回复
这是android studio的bug,看着有1000多个error,但是运行没有错的。

80,360

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧