跪求大神给绝招。
引入银联插件的时候出现了这个问题。
运行和编译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

解决方案 »

  1.   

    这是android studio的bug,看着有1000多个error,但是运行没有错的。
      

  2.   

    我的确是用了Android studio导致会出现这些问题,不过运行会正常,但是这个项目需要上线,会不会影响打包混淆?
      

  3.   

    Information:BUILD SUCCESSFUL
    只要不是BUILD ERROR就是正常的。至于你说的混淆是需要好好测试的。
      

  4.   

    在progaurd文件里面加这个试试
    -keep class com.unionpay.mobile.android.**{*;}
      

  5.   

    在主项目build.gradle这里添加这句
    defaultConfig {
            multiDexEnabled true
       }
    如果打包混淆的时候报错的话,加上这句会好些
      

  6.   

    这个问题 你就不用操心了,是他们sdk的问题
      

  7.   

    添加了multiDexEnabled true还是报错BUILD FAILED!!!
      

  8.   

    http://www.cnblogs.com/morag/p/5598219.html
    参考一些这个网址,个人感觉是版本问题
      

  9.   

    我也有这个警告,app可以运行,但是调支付控件的时候调不起来,有这种情况吗?
      

  10.   

    在proguard-rules.pro中添加以下代码:
    -keepattributes EnclosingMethod