RSS Feed

Minimum Android API Level

This is better on my website www.distantworld.com/minimumapi.html.

If like me you used a method only supported by a higher API level than your currently set API – this is the way you fix it.

STEP 1

First go to AndroidManifest and add something like below (set it to your desired API’s)

<manifest xmlns:android=”http://schemas.android.com/apk/res/android&#8221;

package=”com.example.myapp.app” >
<uses-sdk
android:minSdkVersion=”8″
android:targetSdkVersion=”18″ />

STEP 2

Second if that does not work after cleaning and rebuilding your project find the build.gradle file for your project. If you open it in Notepad you will see somewhere your API settings. Just change the text to your API version.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: