Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the minSDK Version in eclipse?

While creating a new android project in eclipse 3.5, i have selected Android 2.1 Update1 as build target. But i forgot to give the mini SDK version. Now when the build the project, its giving a warning message "WARNING: Application does not specify an API level requirement!Device API version is 8 (Android 2.2)"

The application is running fine..but when i run that application is my Samsung Galaxy S which is having android 2.1, the application is behaving differently.

I have even tried adding <uses-sdk minSdkVersion="7" /> in the manifest file..But still i am getting the warning message..

So how can i change the mini SDK of my project in eclipse to 7,so that i get the same result in my emulator and Mobile phone?

Thanks in advance Shijilal

like image 483
Shijilal Avatar asked Oct 05 '10 16:10

Shijilal


People also ask

What is the SDK version of Android 11?

The SDK version of the Android OS currently running on the user's device. For example, on a device running Android 11, this value will be 30 (aka Build.VERSION_CODES.R ), even if the target and compile SDK of the app is different.

What is minimum SDK version Android?

android:minSdkVersion — Specifies the minimum API Level on which the application is able to run. The default value is "1".

Which SDK to use for Android Studio?

Get the Android 11 SDK After you install and open Android Studio, install the Android 11 SDK as follows: Click Tools > SDK Manager. In the SDK Platforms tab, select Android 11. In the SDK Tools tab, select Android SDK Build-Tools 30 (or higher).


1 Answers

In your manifest there should be something like this

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

Now just change the number to the desired version number. Additionally you should also change the value of the target in the default.properties file.

like image 190
Octavian A. Damiean Avatar answered Oct 15 '22 11:10

Octavian A. Damiean