簡體   English   中英

當我使用proguard生成發行版APK時出現錯誤

[英]When I generated release APK with proguard I am getting errors

如何解決這個錯誤?

Warning:com.parse.ParseOkHttpClient: can't find referenced class com.squareup.okhttp.Headers

Warning:com.ocpsoft.pretty.time.web.jsf.PrettyTimeConverter: can't find referenced class javax.faces.context.FacesContext

Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.

Error:Execution failed for task ':project1:transformClassesAndResourcesWithProguardForRelease'.<br>
 java.io.IOException: Please correct the above warnings first.

將此添加到項目中的proguard-rules.pro文件中:

-keep class com.squareup.** {*;}
-dontwarn com.squareup.**
-keep class com.ocpsoft.** {*;}
-dontwarn com.ocpsoft.**

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM