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 ashishkumar1000
, 10 months ago
unable to open DEX file
via Stack Overflow by Wenza
, 2 years ago
Failed to open dex file '/data/data/com.example.AndroidOverlay/app_TnUR5LUb/1Gzh1FCI.jar' from memory: Unrecognized version number in /data/data/com.example.AndroidOverlay/app_TnUR5LUb/1Gzh1FCI.jar: 0 3 6
java.io.IOException: unable to open DEX file
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:296)
at dalvik.system.DexFile.(DexFile.java:111)
at dalvik.system.DexFile.loadDex(DexFile.java:151)
at com.demo.dexmerge.MainActivity$1$1.run(MainActivity.java:38)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 5 months ago
9 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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