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

前端 未结 16 1933
时光取名叫无心
时光取名叫无心 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 15:58
    1. first close your Eclipse

    2. Go to your workspace and rename .metadata to tushmetadata and go to tushmetadata- >.plugins -> org.eclipse.core.runtime -> .settings and copy all files from it.

    3. now open the Eclipse and go to your workspace there you can see the newly generated .metadata folder in that go to .plugins -> org.eclipse.core.runtime -> .settings and paste here and do not overwrite any file.

    4. Try to "Hello World" project and run it.

    0 讨论(0)
  • 2021-02-13 15:59

    Close all open projects and exit Eclipse. Now you can open Eclipse without getting the error. Start opening your projects one by one to find which one causes the problem. This is most likely because you deleted a Device profile inside the AVD manager.

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

    slott's answer helped a lot. Deleting the .metadata or reinstalling eclipse didn't though. The trick was to isolate the project causing the problem, delete its .settings folder and .project file and reimport it.

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

    I found it's just missing project.properties file in the project folder. After copying one from another project the error is gone. The only valid line in project.properties is

    target=android-8
    
    0 讨论(0)
  • 2021-02-13 16:03

    When I met this problem about a year ago, I had some projects in my workspace that needed a specific Android SDK level (let's say 2.1) and i didn't have it installed in the Android SDK.

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

    Try to delete file .metadata from your android workspace folder. .Metadata folder contains all configuration files for eclipse. It works for me.

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