支持库更新到26.0.1后,Proguard失败

时间:2017-09-28 16:37:02

标签: android build proguard release android-proguard

我已将支持库更新为26.0.1,但发布版本失败。 日志

Note: there were 3 references to unknown classes.
      You should check your configuration for typos.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 63 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 29 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 1 class casts of dynamically created class instances.
      You might consider explicitly keeping the mentioned classes and/or
      their implementations (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast)
Warning: there were 30 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 1 unresolved references to program class members.
         Your input classes appear to be inconsistent.
         You may need to recompile the code.
            :purplleAndroid:transformClassesAndResourcesWithProguardForRelease FAILED

由于哪个库程序失败而无法理解。

proguard file

app level build.gradle

Error log

1 个答案:

答案 0 :(得分:0)

这不是支持库问题, 我使用名为branch.io的库,我用“+”添加了它的依赖结束。所以它已经更新,并且有一些progaurd规则。