Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException

Tags:

I am getting following exception when I am trying to run my Android project.

Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException

Currently now I am using ADT version 22.3. My project target is API level-15. I tried to add Support library in Android tools, but problem not resolved.

like image 213
saa Avatar asked Dec 05 '13 10:12

saa


2 Answers

the key is to set target=android-19 from project.properties and android:targetSdkVersion="19" same to 19. This has worked for me.

like image 121
Rohit Mandiwal Avatar answered Oct 16 '22 12:10

Rohit Mandiwal


Its a big mess... Following way did the trick for me...

Right click your project in eclipse -> Android Tools -> Add Support Library

Then click Accept License and click install.

like image 40
umair.ali Avatar answered Oct 16 '22 12:10

umair.ali