Android - “Parsing Data for android-21 failed”

前端 未结 4 996
遥遥无期
遥遥无期 2020-12-03 09:49

Had the following error in Eclipse after installing Android 5.0 (SDK 21)

\"Loading data for Android 5.0\" has encountered a problem.

Pars

4条回答
  •  死守一世寂寞
    2020-12-03 10:15

    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.

提交回复
热议问题