[2013-11-02 08:26:51 - SearchViewDemo] Dx
trouble writing output: already prepared
[2013-11-02 08:26:51 - Dex Loader] Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-11-02 08:26:51 - SearchViewDemo] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
Well that happend to me as I tried to build my latest project.
Solution was quite simple but... strange.
Just remove all newer Android SDK build-tools (i.e. 19) until the Version 18.1.1 with the Android SDK Manager.
Restart Eclipse. And it will work.
If not, try to add the Support Libraries (Right click on your Android Project in Eclipse, choose Android Tools, Add Support Library)
Issue and solutions found here: https://code.google.com/p/android/issues/detail?id=61710
thanks a lot, its work now 🙂
kamilia,
Glad to hear that ;)!
Greetings,
Nico
thank you 🙂
You're welcome :)!
hi
i'm new started in use opencv on android .i have some problem when i import opencv2.4.6 it can some projecct sample-opencv-camera-control,15puzzle,blub-detec ,but it can not run sample-opencv-android face detection .plz help me
I am sorry I never used OpenCV and therefore cannot help you out. But it seems like OpenCV got an nice forum, so I would recommend you asking your question there. I am quite sure that they can help you out: http://answers.opencv.org/questions/
Regards
thank you
You are welcome 🙂
Thanks Sir 🙂
🙂 Glad it helped you.
thank you
my problem is not removed after follow these steps so please tell anything else
OK. I would advise you to update your Eclipse Plugins. That can be essential. So go to Help->Install New Software-> Click on Add and enter this Address https://dl-ssl.google.com/android/eclipse/ and some name (Maybe Google Android). Click ok and check the Dev Tools and your Available Software Dialog and install those. Restart Eclipse afterwards.
Source: http://developer.android.com/sdk/installing/installing-adt.html
hey Nico, I've tried everything you wrote here but the problem still exists. any other solution?
As already mentioned in the comments, I would advise you to update your Eclipse Android Plugins.
everything is up to date and it still won't launch.
again problem is arises that after removing 19 my eclipse can't generate .apk file that could be install in mobile device plz help
Sorry, I haven't worked with android for a while.
Maybe you should upgrade your Eclipse Version, Eclipse Plugins (especially the Android ones!) and then the ADT and stuff.
That should help.