0

I have a project in eclipse for some android application. by default it was created without menu, bu now I've tried to add some...

I can't compile a project - getting this message

[2014-04-04 08:10:27 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2014-04-04 08:10:27 - mksSQL] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.

I've added the following menu:

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}
duggu
  • 37,851
  • 12
  • 116
  • 113
IgorKushnir
  • 89
  • 2
  • 8
  • 1
    some times it is the problem with your api version, clean the project and try – Sree Apr 04 '14 at 06:18
  • see [this](http://stackoverflow.com/questions/19727915/android-dex-gives-a-bufferoverflowexception-when-building/19803777#19803777) – user3355820 Apr 04 '14 at 06:20
  • check [This](http://stackoverflow.com/questions/20778767/unable-to-execute-dex-java-nio-bufferoverflowexception-check-the-eclipse-log-f) – anuruddhika Apr 04 '14 at 08:37

1 Answers1

0

It happen at times with eclipse.

Try the following ways

#1 Try cleaning your project and build again. or

#2 Right click on your Project → go to Android tools → and click android support library. then clean and build your project.

HIH.

Rethinavel
  • 3,912
  • 7
  • 28
  • 49