Question

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?

Was it helpful?

Solution

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.

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

  1. Open the file find_java.bat found in android-sdk\tools\lib
  2. Find the line for /f %%a in ('%~dps0\find_java.exe -s -w') do set javaw_exe=%%a
  3. Remove "-s"; for /f %%a in ('%~dps0\find_java.exe -w') do set javaw_exe=%%a
  4. Save the file, and restart eclipse.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top