Eclipse Android Change API Level

AndroidEclipse

Android Problem Overview


Once I have created a project with the Android wizard, how do I change the API Package from say 1.5 to 2.1 ?

I'm not referring to the application xml where the minimum API is set, I'm referring to the jar's included in my project to the Google APIs.

Android Solutions


Solution 1 - Android

Are you using Eclipse for this because you tagged the question with eclipse. If you are using Eclipse just right click on your project select properties now choose android. You should now be able to select another build target. If you want to the API package change the checkbox from 4 to 7.

If you are not using Eclipse and want to use the Android console program use the terminal program android in the following way

android update project -p <path to project> -t <new target api level>

Solution 2 - Android

Using Eclipse, it may not change the SDK version correctly just going right click and properties. Open the manifest file and change the line

<uses-sdk android:minSdkVersion="number-of-version-you-want" />

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionIan VinkView Question on Stackoverflow
Solution 1 - AndroidJanuszView Answer on Stackoverflow
Solution 2 - AndroidRoman RdgzView Answer on Stackoverflow