Android change SDK version in Eclipse? Unable to resolve target android-x

后端 未结 7 1545
隐瞒了意图╮
隐瞒了意图╮ 2020-12-14 15:10

I developed an Android aplication against 2.1 SDK. Since then I have re-installed Eclipse/Android SDK; with the new install, I want to \'upgrade\' the dependancy of the Andr

7条回答
  •  自闭症患者
    2020-12-14 15:45

    I faced the same issue and got it working.

    I think it is because when you import a project, build target is not set in the project properties which then default to the value used in manifest file. Most likely, you already have installed a later android API with your SDK.

    The solution is to enable build target toward your installed API level (but keep the minimum api support as specified in the manifest file). TO do this, in project properties, go to android, and from "Project Build Target", pick a target name.

提交回复
热议问题