![](/img/trans.png)
[英]Why i am getting this errors even i have added my jar files in proguard-project.txt?
[英]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.