Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SecurityException: Unable to find field for dex.jar

How do I solve this error? I tried:

  1. Refreshing the project, and rebuilding.

  2. Cleaning the project, and rebuilding.

  3. Closing and reopening the project, and rebuilding

  4. Deleting the project (but not deleting the files — that's a checkbox on the project deletion confirmation dialog), and re- importing it as an existing project, and cleaning and rebuilding.

  5. Deleting the project, deleting the .project and .classpath files in the project, and creating a new project using my files as existing sources.

None of these worked. How do I solve this problem?

like image 673
Serkan Avatar asked Nov 20 '12 18:11

Serkan


2 Answers

update platform sdk version to rev 21 it can be solved. I updated platform SDK from rev 20 to rev 21, and restart eclipse, it's solved.

like image 128
abc Avatar answered Nov 03 '22 01:11

abc


Did this happen after you updated the Android-SDK or something like that? Have you tried to uninstall it and install again?

I just had the same problem and the only solution I found was: - Uninstall Android SDK (as plugin in Eclipse as well and delete manually any related file you can find in the Eclipse directory) - Get the newest Android-SDK - Install it again

I hope it helps in your case too!

like image 23
Proghero Avatar answered Nov 02 '22 23:11

Proghero