我正在尝试从android构建签名的apk,但是我得到了这个error.When,我通常在设备上运行这个应用程序,它的工作文件也很好,当我生成调试模式APK时,它也工作得很好。请提出什么可能的问题与它。谢谢
误差
([http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass](http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)) Note: there were 1 references to unknown class members. You should check your configuration for typos. Note: there were 345 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](http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)) Note: there were 1 library classes explicitly being kept. You don't need to keep library classes; they are already left unchanged. ([http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass](http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass)) Note: there were 44 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](http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)) Warning: there were 11 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](http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)) Warning: Exception while processing task java.io.IOException: Please correct the above warnings first. Thread(Tasks limiter\_2): destruction:app:transformClassesAndResourcesWithProguardForRelease 任务失败
这是我的proGuard文件
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-flattenpackagehierarchy
-allowaccessmodification
-optimizations !code/simplification/arithmetic
-keepattributes *Annotation*
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
}
-dontwarn butterknife.internal.**
-dontwarn retrofit2.Platform$Java8
-dontwarn com.squareup.okhttp.**
-dontwarn com.google.auto.value.**
-dontwarn javax.annotation.**
-dontwarn okio.**发布于 2019-02-20 11:49:20
解决方案--我找到了它的解决方案,只是添加了它,它很好。
-ignorewarningshttps://stackoverflow.com/questions/54785560
复制相似问题