unable to get system library for the project on eclipse ide

后端 未结 9 1307
生来不讨喜
生来不讨喜 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:27

    Just for completing Erhannis answer: If you fixed the problem but it appears again when you restart Eclipse, then just go to the file local.properties on your workspace folder and verify that the location of the Android SDK there is correct.

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

    You need to click on the menu icon with the Android sitting in the grey box with a white arrow pointing down "Opens the Android SDK Manager".

    Opens the Android SDK Manager

    or, from the command line, run:

    %ANDROID_HOME%\tools\android sdk
    
    0 讨论(0)
  • 2021-01-30 17:29

    At times, when only single Android SDK version is installed on your system, and if it gets changed either by un-installing / re-installing Eclipse, or otherwise (directly through SDK Manager), then this issue might crop up. . This is accompanied by the message like this on Eclipse console:

    YourApp] Unable to resolve target 'android-22'
    

    . A simple workaround to this issue is:

    1. Open AndroidManifests.xml of the project, and in the:
    <uses-sdk
       android:minSdkVersion="14"
       android:targetSdkVersion="21" />
    

    change the targetSdkVersion to the one currently installed on your system

    1. Next, open the project.properties file and update

      target=android-21

    to your current SDK version

    1. Finally, clean and re-build the project
    0 讨论(0)
提交回复
热议问题