java.io.IOException: Failed to open dex files from /data/app/com.pkg.app-2/base.apk

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

If you need more than 65536 methods on your application you need to change your Gradle configuration to enable MultiDex and modify your manifest to reference MultiDex class.

Solutions on the web

via GitHub by I60R
, 1 year ago
Failed to open dex files from /data/app/com.pkg.app-2/base.apk
via GitHub by mschillo
, 9 months ago
Failed to open dex files from /data/app/processing.test.androidsimpleexample-2/base.apk
via Stack Overflow by BinaryLord
, 9 months ago
Failed to open dex files from /data/app/com.compgal.stealthsmiley-1/base.apk
via Stack Overflow by creck
, 1 year ago
Failed to open dex files from /data/app/custom.package.name-2/base.apk
via Stack Overflow by goncalveslucasv
, 3 months ago
No original dex files found for dex location /data/app/com.rnauth-2/base.apk
java.io.IOException: Failed to open dex files from /data/app/com.pkg.app-2/base.apk
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:295)
at dalvik.system.DexFile.(DexFile.java:80)
at dalvik.system.DexFile.(DexFile.java:59)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)
at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)
at dalvik.system.DexPathList.(DexPathList.java:120)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48)
at dalvik.system.PathClassLoader.(PathClassLoader.java:65)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:84)
at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:45)
at android.app.LoadedApk.getClassLoader(LoadedApk.java:434)

Users with the same issue

8 times, 7 months ago
9 times, 1 year ago
1495 times, 1 year ago
2 times, 1 year ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.