Sunday, April 22, 2012

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


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 Android application to 2.2 SDK (because I dont want 2.1 installed on my machine). Is this possible? I am getting the following error from eclipse:




[2010-08-31 18:18:32 - AndroidApplication] Unable to resolve target 'android-7'


Source: Tips4all

2 comments:

  1. If you're using eclipse you can open default.properties file in your workspace and change the project target to the new sdk (target=android-8 for 2.2). I accidentally selected the 1.5 sdk for my version and didn't catch it until much later, but updating that and restarting eclipse seemed to have done the trick.

    ReplyDelete
  2. go to project properties and change the target from 7 to 8 also change the target in android manifest and also go to properties of project by right clicking on the project and choose the target

    ReplyDelete