proguard-rules.pro 文件中有一条 proguard 规则:
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
我删除了某人提到的那一行 here .
然后我再次收到错误:
can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
然后我尝试了某人提到的这段代码 here .
尝试上述代码后,现在出现另一个错误:
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)}
请帮助我修复此错误,因为我不知道现在应该实现什么。
详细信息:
我正在使用 Glide 模块
我已经实现了 Admob 插页式代码
生成签名 APK 时出现错误,但测试应用程序时却没有出现错误 在真实设备上。
最佳答案
将 firebase-core
从 17.0.0
更新到 17.2.0
为我解决了这个问题。
确保您的 io.fabric 的所有依赖项都是最新的。
关于java - 在 android studio 中生成签名的 apk 时未找到类型 `libcore.io.Memory`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53720954/