java – Type `libcore.io.Memory` was not found while generating signed apk in android studio-ThrowExceptions

Exception or error:

There’s a pro-guard rule inside proguard-rules.pro file as:

-keepresourcexmlelements manifest/application/meta-data@value=GlideModule

I removed that line as mentioned by someone here.

Then again I got an error as:

can’t find referenced class
org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Then I tried this code mentioned by someone here.

After Trying the mentioned code there’s now another error as:

Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.ads.auh$a.a(long, byte)`
Message{kind=WARNING, text=Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `void com.google.android.gms.internal.ads.auh$a.a(long, byte)`, sources=[D:\Wallprix\Wallprix\app\build\intermediates\transforms\proguard\release\0.jar], tool name=Optional.of(D8)}

Please help me to fix this error as I don’t know what should I implement now.

Details:

  1. I’m using Glide Module

  2. I’ve implemented Admob Interstitial code

  3. Getting error while generating signed APK but not when testing App
    on a real device.

How to solve:

Updating firebase-core from 17.0.0 to 17.2.0 fixed it for me.
Make sure that Your io.fabric is up to date with all dependencies.

###

If you have this issue just downgrade all your firebase and Google libary to 15.0.0 or If you have the perfect match

Leave a Reply

Your email address will not be published. Required fields are marked *