Error with parsing Android sdk content and initializing java tooling in eclipse

前端 未结 16 1997
时光取名叫无心
时光取名叫无心 2021-02-13 15:19

Every time I open Eclipse, I get the following error messages:

Android SDK Content Loader: parseSdkContent failed java.lang.NullPointerException

Initializing Jav

相关标签:
16条回答
  • 2021-02-13 16:05

    This solution worked for me.

    Close Eclipse and delete all .markers inside your workspace folder.

    Restart Eclipse (once I had to restart it twice, it hang on the first but worked on the second for no aparent reason).

    Of course, it's always safe to back them up first.

    0 讨论(0)
  • 2021-02-13 16:06

    This is just weired. In my case when I took a subversion update, I was getting this problem. The reason was the corruption of my project.properties file (due to subversion conflict). I just corrected the file and problem got solved.

    0 讨论(0)
  • 2021-02-13 16:07

    Do not delete all the full .metadata

    • Backup .metadata
    • delete only .metadata/.plugins/org.eclipse.core.resources/.project
    • restart eclipse

    Observation : the projects folders are created

    Further - if you are using svn/git/hg have code repository links it would be destroyed, so to reinstate

    • close eclipse
    • copy relevant projects from backup to merge with current projects in .metadata/.plugins/org.eclipse.core.resources/.project
    • restart eclipse

    Downfall - sporadic fail error may occur (sync or something) - harmless

    backagain

    0 讨论(0)
  • 2021-02-13 16:10

    For me, the source of the NullPointerException problem was a host-side Junit test project that references (and tests) code from an Android project. It didn't have a project.properties file. It's not an Android project, but for some reason the newer versions of the SDK somehow expects the file there. To fix the problem, I just copied a project.properties file from an Android project to the host unit test project.

    0 讨论(0)
提交回复
热议问题