proguardRelease FAILED when compiling apk with assembleRelease in Android Studio

前端 未结 5 1953
感动是毒
感动是毒 2020-12-15 15:04

I\'m trying to compile my app as assembleRelease in Android Studio 1.0.1 and get the following message:

FAILURE: Build failed with an exception.

* What went         


        
相关标签:
5条回答
  • 2020-12-15 15:34

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

    -ignorewarnings 
    
    0 讨论(0)
  • 2020-12-15 15:40

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

    -dontwarn okio.**
    
    0 讨论(0)
  • 2020-12-15 15:42

    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.

    0 讨论(0)
  • 2020-12-15 15:43

    I had to disable proguard with

    minifyEnabled false
    

    Not the best solution, but it works.

    0 讨论(0)
  • 2020-12-15 15:51

    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.

    0 讨论(0)
提交回复
热议问题