Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you change min. API level for your Android app in Eclipse?

I selected API minimum level 1.5 for my android app and I'm just about to integrate gestures in to it which came in 1.6. Is there a way in Eclipse to change the minimum level from 1.5 to 1.6 halfway through building an app?

Many thanks

like image 226
Darius Avatar asked Jul 16 '10 19:07

Darius


People also ask

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 API level should I develop for Android?

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.

How many API levels are there in Android?

Android exposes three Android API level project settings: Target Framework – Specifies which framework to use in building your application. This API level is used at compile time by Xamarin. Android.


2 Answers

If you go into your Manifest file and set

    <uses-sdk android:minSdkVersion="3" /> 

to

    <uses-sdk android:minSdkVersion="4" /> 

Then you will have changed your entire project from running 1.5 as a minimum to 1.6.

While you are still building your app, you can change the minimum API level at any time.

like image 168
Aurora Avatar answered Sep 29 '22 20:09

Aurora


Using Android Studio, you would find minSdkVersion in the build.gradle file under app directory.

like image 44
user3366032 Avatar answered Sep 29 '22 19:09

user3366032