Android - "Parsing Data for android-21 failed" Android - "Parsing Data for android-21 failed" android android

Android - "Parsing Data for android-21 failed"


Initially I was facing the same issue. I upgraded to JDK1.7. Still issue persist. This is due to the fact that some time eclipse takees the default sdk as 1.6. To resolve this:

  1. Change the environmental path to point 1.7/1.8
  2. Open Eclipse and goto windows tab-> preference
  3. Goto Java->complier and set Compiler compliance level to 1.7 and press apply.
  4. Then Goto Installed JRE Section. check if the installed jdk is listed and selected in the list. If not listed give the manual path using search. then select the jdk version and remove other versions in the list.
  5. in installed JRE go to execution environment and select the intended java se version and check it in compatible section
  6. Presss ok and restart Eclipse.

This should resolve the issue.


I tried all above mention step, but not able to solve the problem.After some research, I got Solution of my problem.

check eclipse.ini to see -vm, (like "C:/Program Files/Java/jre7/bin/javaw.exe").

i also have the problem you said and i found eclipse is started with java6. after i modify to use java7, there are no such fail dialog.

  • So need to update SDK to 1.8 or 1.7.
  • set compiler to 1.7 or 1.8..
  • then check eclipse.ini