17

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?

Charles
  • 48,924
  • 13
  • 96
  • 136
Serkan
  • 631
  • 3
  • 11
  • 19

3 Answers3

17

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.

abc
  • 186
  • 2
  • 3
    If you don't see rev21 available in SDK manager, go to Tools->Options and clear the cache, then reload. – Mr. Bungle Mar 05 '13 at 14:27
  • On Mac OSX, run SDK Manager, then click from the top Menu 'Android SDK Manager / Preferences / Manifest Cache'. Then choose top menu 'Packages / Reload'. – Ben Clayton Mar 15 '13 at 15:14
2

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!

Proghero
  • 639
  • 1
  • 8
  • 19
  • yes it happen after the update the android-sdk. Ok ı try that i hope it figure out. – Serkan Nov 25 '12 at 09:34
  • 1
    now ı finished update after uninstallation then it is fixed.Thanks a lot!! – Serkan Nov 25 '12 at 14:24
  • "any related file you can find in the Eclipse directory" – nuala Nov 30 '12 at 14:45
  • @yoshi: By that I meant actually "any file related to the Android-SDK which you can still find in the Eclipse directory (after having uninstalling it)". I hope this helps! ;) – Proghero Dec 01 '12 at 13:58
0

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.
Skymt
  • 1,089
  • 9
  • 10