简体   繁体   English

没有Proguard规则的第三方库会导致Proguard错误

[英]Third party library without Proguard rules causing Proguard error

I am receiving the following error when trying to release an obfuscated version using proguard: 尝试使用proguard发行混淆版本时,出现以下错误:

  • What went wrong: Execution failed for task ':MyApp:transformClassesAndResourcesWithProguardForMyAppRelease'. 出了什么问题:任务':MyApp:transformClassesAndResourcesWithProguardForMyAppRelease'的执行失败。 java.io.IOException: Please correct the above warnings first. java.io.IOException:请首先更正以上警告。

Updated all my libraries to the latest version and I'm using gradle 2.0.0. 将我所有的库更新到最新版本,并且我正在使用gradle 2.0.0。

I saw these errors too, while uploading my first app.See if this works 在上传我的第一个应用程序时,我也看到了这些错误。

-dontwarn <package of the class giving error>.** 

Write it in your proguard-rules.pro 将其写在您的proguard-rules.pro中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM