Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android.os.Build.VERSION_CODES javadoc for details

Tags:

java

android

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.teoit.securenotes"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15"
android:maxSdkVersion="15" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.teoit.securenotes.Smsm"
android:label="@string/app_name" >
<intent-filter>
<action android:name="com.teoit.securenotes.SMSM" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.teoit.securenotes.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>

</manifest>

The Problem Here ..

    <uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15"
android:maxSdkVersion="15" />

Tip problem

Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.

What is The Solution ?? :(

like image 875
user2979131 Avatar asked Jun 01 '26 18:06

user2979131


2 Answers

I had exactly the same problem.

The solution : Project-> Clean

like image 67
user3107671 Avatar answered Jun 03 '26 09:06

user3107671


It's an Android Lint warning that tells that you should consider updating targetSdkVersion to the latest API level (19 as of now). It's because your target SDK level is lower than your build SDK (defined in project.properties on Eclipse/ADT-based tooling).

When you run an app with a given target SDK version on a device actually running a higher API level, the platform enables certain backward-compatibility features. Instead you should ensure that your app works correctly without these features. The comptatibility modes are listed in the javadoc.

like image 30
laalto Avatar answered Jun 03 '26 08:06

laalto