C
coreytaylor211
Fortgeschrittenes Mitglied
- 5
Hi ich habe ein Problem und bekomme es nicht weg. Daher bitte ich um eure Hilfe.
Hier mal der Fehler :
Ich habe gehört das Ich multidex einfügen soll, aber leider geht das auch nicht. Ich habe in der
multidex eingefügt
Die compileSdkVersion ist 29 und die buildToolsVersion ist 29.0.2. MinSdkVersion 26 und targetSdkVersion 29 .
Was mache ich falsch ? Wenn ihr noch Infos braucht einfach fragen. Lieben dank im voraus.
Hier mal der Fehler :
Java:
java.lang.RuntimeException: Unable to instantiate application de.androidappdev.expg.DexClass: java.lang.ClassNotFoundException: Didn't find class "de.androidappdev.expg.DexClass" on path: DexPathList[[zip file "/data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/base.apk"],nativeLibraryDirectories=[/data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/lib/x86, /system/lib, /vendor/lib]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:971)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5765)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.ClassNotFoundException: Didn't find class "de.androidappdev.expg.DexClass" on path: DexPathList[[zip file "/data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/base.apk"],nativeLibraryDirectories=[/data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/lib/x86, /system/lib, /vendor/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:1086)
at android.app.LoadedApk.makeApplication(LoadedApk.java:965)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5765)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1661)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Suppressed: java.io.IOException: Failed to open dex files from /data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/base.apk because: Failure to verify dex file '/data/app/de.androidappdev.expg-iZYv4yFCNdnExW3oEUpPmg==/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:69)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:36)
at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:676)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:709)
at android.app.LoadedApk.getResources(LoadedApk.java:936)
at android.app.ContextImpl.createAppContext(ContextImpl.java:2242)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5672)
Ich habe gehört das Ich multidex einfügen soll, aber leider geht das auch nicht. Ich habe in der
Code:
build.gradle(app)
Code:
buildTypes {
release {
minifyEnabled false
multiDexKeepFile file("multidex-config.txt")
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
multiDexEnabled true
multiDexKeepFile file("multidex-config.txt")
}
}
Die compileSdkVersion ist 29 und die buildToolsVersion ist 29.0.2. MinSdkVersion 26 und targetSdkVersion 29 .
Was mache ich falsch ? Wenn ihr noch Infos braucht einfach fragen. Lieben dank im voraus.
Zuletzt bearbeitet: