proguardRelease FAILED when compiling apk with assembleRelease in Android Studio

泄露秘密 提交于 2019-11-29 00:51:22

Add this to ProGuard setting file(like proguard-rules.pro)

-dontwarn okio.**

I had to disable proguard with

minifyEnabled false

Not the best solution, but it works.

Vasil Valchev

I had the same problem with Gradle 1.1.0. It remembered some old class references which I have moved, and I couldn't build apk.

Try Build > Clean.

It helped me, and now I can build apk again.

Add this to ProGuard setting file(like proguard-rules.pro)

-ignorewarnings 
DMan

I think you have already resolve your problem. Anyway see this link: https://stackoverflow.com/a/29858070/3864698

The fix is planned for Gradle Plugin version 1.4. So we must wait a little bit.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!