在proguard-rules.pro文件中有一个保护原则:
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
Run Code Online (Sandbox Code Playgroud)
我删除了某人在这里提到的那条线。
然后我又得到一个错误:
找不到引用的类org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
然后我尝试了这里有人提到的这段代码。
尝试上述代码后,现在出现另一个错误:
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)}
Run Code Online (Sandbox Code Playgroud)
请帮助我解决此错误,因为我现在不知道应该执行什么。
细节:
我正在使用滑翔模块
我已经实施了Admob非页内广告代码
在生成签名的APK时出错,但在真实设备上测试App时却不会出错。