错误:
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.> java.io.IOException: Please correct the above warnings first.
吾碰到此问题,经过一番搜索,在stackoverflow找到一个牛人的办法,顺利解决。希望能对各位有所帮助:
修改proguard-project.txt,增加以下内容:
#### -- Picasso --
-dontwarn com.squareup.picasso.**
#### -- OkHttp --
-dontwarn com.squareup.okhttp.internal.**
#### -- Apache Commons --
-dontwarn org.apache.commons.logging.**
-ignorewarnings
-keep class * {
public private *;
}
除了吾自己,别人亦实践解决。