java.lang.ClassNotFoundException:

2020-12-02 13:35:14.902 3420-3420/com.hhm.easybuy E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.hhm.easybuy, PID: 3420
    java.lang.RuntimeException: Unable to instantiate application com.hhm.easybuy.SimpleApplication: java.lang.ClassNotFoundException: Didn't find class "com.hhm.easybuy.SimpleApplication" on path: DexPathList[[zip file "/data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk"],nativeLibraryDirectories=[/data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/lib/arm, /data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /product/lib, /preavs/lib]]
        at android.app.LoadedApk.makeApplication(LoadedApk.java:1059)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6590)
        at android.app.ActivityThread.-wrap2(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:108)
        at android.os.Looper.loop(Looper.java:166)
        at android.app.ActivityThread.main(ActivityThread.java:7529)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.hhm.easybuy.SimpleApplication" on path: DexPathList[[zip file "/data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk"],nativeLibraryDirectories=[/data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/lib/arm, /data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /product/lib, /preavs/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.Instrumentation.newApplication(Instrumentation.java:1089)
        at android.app.LoadedApk.makeApplication(LoadedApk.java:1053)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6590) 
        at android.app.ActivityThread.-wrap2(Unknown Source:0) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) 
        at android.os.Handler.dispatchMessage(Handler.java:108) 
        at android.os.Looper.loop(Looper.java:166) 
        at android.app.ActivityThread.main(ActivityThread.java:7529) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921) 
    	Suppressed: java.io.IOException: Failed to open dex files from /data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk because: Failure to verify dex file '/data/app/com.hhm.easybuy-OfM_M0e2Rgmhr3ohECkK8w==/base.apk': Bad method handle type 7
        at dalvik.system.DexFile.openDexFileNative(Native Method)
        at dalvik.system.DexFile.openDexFile(DexFile.java:353)
        at dalvik.system.DexFile.<init>(DexFile.java:100)
        at dalvik.system.DexFile.<init>(DexFile.java:74)
        at dalvik.system.DexPathList.loadDexFile(DexPathList.java:374)
        at dalvik.system.DexPathList.makeDexElements(DexPathList.java:337)
        at dalvik.system.DexPathList.<init>(DexPathList.java:157)
        at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:65)
        at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:64)
        at com.android.internal.os.PathClassLoaderFactory.createClassLoader(PathClassLoaderFactory.java:43)
        at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:75)
        at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:38)
        at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:719)
        at android.app.LoadedApk.getClassLoader(LoadedApk.java:752)
        at android.app.LoadedApk.getResources(LoadedApk.java:1005)
        at android.app.ContextImpl.createAppContext(ContextImpl.java:2489)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6497)

 

查看全部
qq_42984443
qq_42984443
2020/12/02 13:41
  • android-studio
  • android
  • 点赞
  • 收藏
  • 回答
    私信

1个回复