简体   繁体   English

失败[INSTALL_FAILED_OLDER_SDK] android

[英]Failure [INSTALL_FAILED_OLDER_SDK] android

the phone is running 2.3.5 and I set the target and min sdk to 11 手机正在运行2.3.5,我将目标和最小SDK设置为11

this is the AndroidManifest.xml 这是AndroidManifest.xml

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

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

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="testchamber.com.listfragmentexample.MainActivity"
        android:label="@string/app_name" 
        android:theme="@style/AppBaseTheme" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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


  </manifest>

this is my build.gradle 这是我的build.gradle

apply plugin: 'com.android.application'
import org.apache.tools.ant.taskdefs.condition.Os

android {
compileSdkVersion 'Google Inc.:Google APIs:11'
buildToolsVersion "21.1.1"

defaultConfig
        {
            applicationId "testchamber.com.listfragmentexample"
            minSdkVersion 11
            targetSdkVersion 11
        }

   buildTypes
        {
            release {
                minifyEnabled true
            }
        }


   }

 dependencies {
 compile 'com.android.support:support-v4:18.0.+'
 compile 'com.android.support:appcompat-v7:18.0.+'
  }

I don't see why this shouldn't run on my htc desire hd running 2.3.5 (gingerbread) 我不明白为什么不应该在运行2.3.5(GingerBread)的HTC Desire HD上运行

API level 11 is Android 3.0. API级别11是Android 3.0。 You cannot install an app that declares minSdk 11 to a device running 2.3.5. 您无法在运行2.3.5的设备上安装声明minSdk 11的应用程序。

To make it install, lower the minSdk to 9 or lower. 要安装它,请将minSdk降低到9或更低。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM