unable to get system library for the project on eclipse ide

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

    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

提交回复
热议问题