未定位到最新版本的Android targetSdkVersion =“15”

时间:2015-01-10 10:50:03

标签: android android-manifest target-sdk

我发现此错误:未定位到最新版本的Android;兼容模式适用。考虑测试和更新此版本。有关详细信息,请参阅android.os.Build.VERSION_CODES javadoc。在线:android:targetSdkVersion =“15”/>

AndroidManifiest

<?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>

project.properties

# 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" />

但它显示相同的错误

2 个答案:

答案 0 :(得分:1)

您的目标是旧版Android SDK(API 15)。更新 Android SDK ,然后更改 AndroidManifest.xml

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

答案 1 :(得分:1)

更改为

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