Sunday, December 22, 2013

Unable to execute dex: java.nio.BufferOverflowException.

When trying to run an android application from eclipse, I got this error

[2013-12-23 07:23:38 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-12-23 07:23:38 - Spinner] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

To solve it, right click on your project folder -> Android tools -> Add Support Library, and follow through the steps.

Edit: For some projects even this doesn't work and you have to set the target sdk to 19 (the latest as of the time of this post) in both the androidmanifest.xml and project.properties files.

No comments:

Post a Comment