Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace

Everytime I want to run my Android application I get a error:

[2013-12-26 11:24:12 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-12-26 11:24:12 - Pk6.1.3] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

I deleted Android dependencies from project > properties > java build path > libraries. After I clean the project and not run it.

I modify project.properties file, target=android-19, and I run it, but I don't want to do this.

Are there other solutions to solved the problem?

Thanks.

like image 665
liuj Avatar asked Dec 26 '13 03:12

liuj


4 Answers

from Eclipse:

First Right click on project and go to properties.

  1. Go to Java Build Path Screen (from left menu)

  2. Select Libraries Pane.

  3. Highlight Android dependencies

  4. Click Remove

  5. Click Ok.

enter image description here

like image 158
j2emanue Avatar answered Oct 11 '22 10:10

j2emanue


Right click your project → android tools → android support library.

it works for me :)

like image 26
Muhammad Usman Ghani Avatar answered Oct 11 '22 11:10

Muhammad Usman Ghani


Right click your project - Properties - Android

and set Project Build Target version higher.

I have same problem and this works for me.

like image 24
Newkie Avatar answered Oct 11 '22 12:10

Newkie


I was doing some mistake, now it is working fine for me.

Remove dependency from: Properties (Alt+Enter) -> Java build path -> libraries tab.

like image 9
Rakesh Avatar answered Oct 11 '22 11:10

Rakesh