[英]When I generated release APK with proguard I am getting errors
How to resolve this error? 如何解决这个错误?
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.
Add this to your proguard-rules.pro
file in the project: 将此添加到项目中的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.