androidgradleandroid-gradle-3.0

Update gradle plugin 3 with android SDK 28 proguard fail


After updating from version 2 to 3 of the plugin gradle, proguard shows now many warning. One of them is:

library class dalvik.system.DelegateLastClassLoader extends or implements program class dalvik.system.PathClassLoader

If I change the android sdk to 26 this warning dissapeard. Is this a bug of gradle or android?

I have seen many requests about gradle warnings after update to version 3, why is this happen on gradle plugin v3?


Solution

  • I solved using the rule:

    -dontwarn dalvik.**

    Not the best solution, but now I can build my app and everything seems fine.