錯誤:
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 *;
}
除了吾自己,别人亦實踐解決。