52 unresolve类和引用

时间:2017-12-13 11:02:50

标签: android gradle build

  

警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.OkHttpClient   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Cache   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.OkHttpClient   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Request $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.OkHttpClient   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Call   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Response   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.ResponseBody   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Response   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.ResponseBody   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.OkHttpClient   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Cache   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Request $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Response   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Cache   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Request   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Call   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Response   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.ResponseBody   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.OkHttpClient   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.CacheControl   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Request $ Builder   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Response   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.ResponseBody   警告:com.squareup.picasso.OkHttpDownloader:找不到引用的类com.squareup.okhttp.Cache   警告:有52个未解析的类或接口引用。   警告:处理任务java.io.IOException时发生异常:请先纠正上述警告。   错误:任务':app:transformClassesAndResourcesWithProguardForRelease'的执行失败。   作业失败,请参阅日志了解详情

1 个答案:

答案 0 :(得分:1)

这是因为你在gradle中启用了minify

所以请将此添加到proguard-rules.pro

-dontwarn com.squareup.okhttp.**