简体   繁体   English

在 android studio 中生成签名的 apk 时找不到类型 `libcore.io.Memory`

[英]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: proguard-rules.pro文件中有一个 pro-guard 规则:

-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找不到引用的类 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我正在使用 Glide 模块

  2. I've implemented Admob Interstitial code我已经实施了 Admob Interstitial 代码

  3. Getting error while generating signed APK but not when testing App on a real device.生成签名 APK 时出错,但在真实设备上测试 App 时不会出错。

Updating firebase-core from 17.0.0 to 17.2.0 fixed it for me.将 firebase firebase-core17.0.0更新到17.2.0为我修复了它。 Make sure that Your io.fabric is up to date with all dependencies.确保您的 io.fabric 是最新的所有依赖项。

If you have this issue just downgrade all your firebase and Google libary to 15.0.0 or If you have the perfect match in your firebase libary, like everything having the same number如果你遇到这个问题,只需将你所有的 firebase 和 Google 库降级到 15.0.0 或者如果你的 firebase 库中有完美匹配,就像所有具有相同编号的东西一样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM