gpt4 book ai didi

android - 未针对最新版本的 Android targetSdkVersion ="15"

转载 作者:行者123 更新时间:2023-11-29 20:55:38 24 4
gpt4 key购买 nike

我有这个错误:未针对最新版本的 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

我该如何解决这个问题?

谢谢

开发人员:

我变了

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

但它显示相同的错误。

最佳答案

您的目标是旧版本的 Android SDK (API 15)。更新您的 Android SDK 并更改您的 AndroidManifest.xml:

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

关于android - 未针对最新版本的 Android targetSdkVersion ="15",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27875357/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com