游戏分包后启动闪退是啥原因

Author: xuboyuCreated Jun 17, 2022Updated Jun 17, 2022

java.lang.VerifyError: Verifier rejected class com.yanzhenjie.permission.FileProvider: int com.yanzhenjie.permission.FileProvider.delete(android.net.Uri, java.lang.String, java.lang.String[]) failed to verify: int com.yanzhenjie.permission.FileProvider.delete(android.net.Uri, java.lang.String, java.lang.String[]): [0x4] 'this' argument 'Uninitialized Reference: java.lang.RuntimeException Allocation PC: 0' not instance of 'Reference: java.lang.Runtime' (declaration of 'com.yanzhenjie.permission.FileProvider' appears in /data/app/~~ejggKsunH0BfpHxoQ0aGEw==/com.xxx.xxx -vZnPLkF_dhSlwPHBOvM4YQ==/base.apk) at java.lang.Class.newInstance(Native Method) at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147) at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67) at android.app.ActivityThread.installProvider(ActivityThread.java:7642) at android.app.ActivityThread.installContentProviders(ActivityThread.java:7170) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6917) at android.app.ActivityThread.access$1600(ActivityThread.java:264) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:210) at android.os.Looper.loop(Looper.java:299) at android.app.ActivityThread.main(ActivityThread.java:8085) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

Source: yanzhenjie/AndPermission