Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Android Change API Level

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.

like image 590
Ian Vink Avatar asked May 31 '10 14:05

Ian Vink


People also ask

How to change API level in 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.

How do I change the API level in Android project?

Step 1: Open your project in Android mode then go to Gradle Scripts > build. gradle(Module: app) as shown in the following image. Step 2: Refer to the below image and here you have to change the minSdkVersion and targetSdkVersion as per the requirement.

What is minimum API level in Android Studio?

When you upload an APK, it must meet Google Play's target API level requirements. New apps must target Android 12 (API level 31) or higher; except for Wear OS apps, which must target Android 11 (API level 30) or higher.

What is API level in Android Studio?

What is API Level? API Level is an integer value that uniquely identifies the framework API revision offered by a version of the Android platform. The Android platform provides a framework API that applications can use to interact with the underlying Android system.


2 Answers

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> 
like image 117
Janusz Avatar answered Sep 21 '22 09:09

Janusz


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" /> 
like image 37
Roman Rdgz Avatar answered Sep 24 '22 09:09

Roman Rdgz