美文网首页
superwebview java.lang.RuntimeEx

superwebview java.lang.RuntimeEx

作者: 一个冬季 | 来源:发表于2018-10-19 18:52 被阅读30次

我的解决办法如下
1、加入 app.gradle 加入'com.android.support:multidex:1.0.2',
2、在你的application 重写 attachBaseContext

  @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
java.lang.RuntimeException: Unable to get provider com.uzmap.pkg.uzapp.UProvider: java.lang.ClassNotFoundException: Didn't find class "com.uzmap.pkg.uzapp.UProvider" on path: DexPathList[[zip file "/data/app/com.xxxx.xxxx-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.baozugong.moka-2, /system/lib]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:4795)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4387)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4327)
        at android.app.ActivityThread.access$1500(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5019)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.uzmap.pkg.uzapp.UProvider" on path: DexPathList[[zip file "/data/app/com.baozugong.moka-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.xxxx.xxxx-2, /system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
        at android.app.ActivityThread.installProvider(ActivityThread.java:4780)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4387) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4327) 
        at android.app.ActivityThread.access$1500(ActivityThread.java:135) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:136) 
        at android.app.ActivityThread.main(ActivityThread.java:5019) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 
        at dalvik.system.NativeStart.main(Native Method)

相关文章

网友评论

      本文标题:superwebview java.lang.RuntimeEx

      本文链接:https://www.haomeiwen.com/subject/jbeuzftx.html