如何解决这个错误?
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.**
关于java - 当我使用 proguard 生成发布 APK 时,出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34917762/