1

我有这个错误:不针对最新版本的 Android;兼容模式适用。考虑测试和更新此版本。有关详细信息,请参阅 android.os.Build.VERSION_CODES javadoc。在线:android:targetSdkVersion="15" />

安卓清单

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

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

    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="com.app.permission.MAPS_RECEIVE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.ACCESS_GPS" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" >
    </uses-permission>

    <uses-feature android:glEsVersion="0x00020000"
                  android:required="true"/>
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <uses-library android:name="com.google.android.maps" />

        <activity
            android:name=".ListinActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Quienes"
            android:label="@string/title_activity_quienes" >
        </activity>
        <activity
            android:name=".Posicionamiento"
            android:label="@string/title_activity_posicionamiento" >
        </activity>
    </application>

</manifest>

项目属性

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-15
android.library.reference.1=../../android-sdks/extras/google/google_play_services/libproject/google-play-services_lib

我怎么能解决这个问题?

谢谢

PD:

我变了

<uses-sdk
            android:minSdkVersion="8"
            android:targetSdkVersion="21" />

但它显示相同的错误

4

2 回答 2

1

You are targeting an old version of Android SDK (API 15). Update your Android SDK and than change your AndroidManifest.xml:

   <uses-sdk
      android:minSdkVersion="8"
      android:targetSdkVersion="21" />
于 2015-01-10T10:56:46.013 回答
1

Change to

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="19" />
于 2015-01-10T10:58:20.877 回答