unable to get system library for the project on eclipse ide

后端 未结 9 1306
生来不讨喜
生来不讨喜 2021-01-30 16:26

\"enterI was working on an android tutorial and it wanted me to import the library from another

相关标签:
9条回答
  • 2021-01-30 17:10

    Borrowing from @Erhannis answer :

    "
    Right click on your project
    Go to properties
    Click the Android section
    "
    

    When I view the build target everything looked fine :

    enter image description here

    So I checked another build target , hit apply, and then re checked my original build target (Android 4.4.2) and re-hit apply. My project then compiled.

    0 讨论(0)
  • 2021-01-30 17:10

    Right Click on Project-> Select Android tools -> Select Fix Project Properties

    This did the trick for me.

    0 讨论(0)
  • 2021-01-30 17:15

    I had the same problem. Try

    1. Right click on your project
    2. Go to properties
    3. Click the Android section
    4. Select a different target api (assuming one is already selected, as mine was - otherwise, select the one you want and jump to step 9)
    5. Click OK
    6. Do steps 1-3 again
    7. Select your original target api
    8. Click OK
    9. Clean and build your project

    Worked for me, anyway.

    Derived the solution from: "Unable to get system library for project" after I upgraded to Android SDK 2.3 and ADT 8.0

    0 讨论(0)
  • 2021-01-30 17:15

    This happens when you are targetting an API version that for some reason is not mapped on your buildpath.

    1. See which is the version of the SDK you are pointing to at the project.properties file.
    2. Go to the SDK Manager at Window->Android SDK Manager
    3. Check the Android API item that matches the version you want to use, OR, click on the latest one and then update your project.properties file.
    4. Make sure your project build configuration is Project->"Build Automatically"
    5. Retsart Eclipse (claning and rebuilding may not refresh all the project properties)
    0 讨论(0)
  • 2021-01-30 17:18

    Error in .classpath on your project. It not connect to android sdk. Fix it and clean project. :-)

    0 讨论(0)
  • 2021-01-30 17:20

    For me the project.properties file was missing (it was code from a repo I checked out). So I just created one with this line:

    target=android-20
    

    After that, Erhannis' solution worked for me.

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