java.io.IOException: unable to open DEX file

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 shidongdi
, 1 year ago
unable to open DEX file
via GitHub by hkinglon
, 1 year ago
via GitHub by ashishkumar1000
, 1 year ago
unable to open DEX file
via GitHub by DozenWang
, 1 year ago
via GitHub by w4lle
, 1 year ago
via GitHub by leiMsnow
, 8 months ago
Failed to open dex files from /data/user/0/com.dangdang.buy2/tinker/patch-d07d791c/dex/classes.dex.jar because: Failure to verify dex file '/data/user/0/com.dangdang.buy2/tinker/patch-d07d791c/dex/classes.dex.jar': Found virtual method with same index as direct method: 29418
java.io.IOException: unable to open DEX file
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:304)
at dalvik.system.DexFile.(DexFile.java:115)
at dalvik.system.DexFile.loadDex(DexFile.java:155)
at com.alipay.euler.andfix.AndFixManager.fix(AndFixManager.java:147)
at com.alipay.euler.andfix.patch.PatchManager.loadPatch(PatchManager.java:214)
at com.robert.today.andfixdemo.TestApplication.onCreate(TestApplication.java:25)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1009)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4613)
at android.app.ActivityThread.access$1800(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5314)
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:864)

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.