Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 353
Kunal Ukey Avatar asked Dec 11 '18 09:12

Kunal Ukey


1 Answers

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.

like image 183
Michał Mosoń Avatar answered Nov 02 '22 17:11

Michał Mosoń