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.
SecurityException: Unable to find field for dex.jar
-
30-11-2021 - |
Question
How do I solve this error? I tried:
Refreshing the project, and rebuilding.
Cleaning the project, and rebuilding.
Closing and reopening the project, and rebuilding
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.
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?
Solution
OTHER TIPS
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!
This error may stem from a faulty batch file in android sdk.
The following fixed worked for me
- Open the file
find_java.bat
found inandroid-sdk\tools\lib
- Find the line
for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a
- Remove "-s";
for /f %%a in ('%~dps0\find_java.exe -w') do set javaw_exe=%%a
- Save the file, and restart eclipse.