首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >生成签名APK Android时出现的保护错误

生成签名APK Android时出现的保护错误
EN

Stack Overflow用户
提问于 2019-02-20 11:42:52
回答 1查看 724关注 0票数 0

我正在尝试从android构建签名的apk,但是我得到了这个error.When,我通常在设备上运行这个应用程序,它的工作文件也很好,当我生成调试模式APK时,它也工作得很好。请提出什么可能的问题与它。谢谢

误差

代码语言:javascript
复制
       ([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文件

代码语言:javascript
复制
-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.**
EN

回答 1

Stack Overflow用户

发布于 2019-02-20 11:49:20

解决方案--我找到了它的解决方案,只是添加了它,它很好。

代码语言:javascript
复制
-ignorewarnings
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54785560

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档