什么"失败[INSTALL_FAILED_OLDER_SDK] QUOT;意味着Android的工作室? [英] What does "Failure [INSTALL_FAILED_OLDER_SDK]" mean in Android Studio?

查看:220
本文介绍了什么"失败[INSTALL_FAILED_OLDER_SDK] QUOT;意味着Android的工作室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了我使用,使一个应用程序,这个升级Froyo (2.2)设备。 当我尝试直接运行应用程序的设备它显示了一个错误说

  PKG:/data/local/tmp/com.example.HelloWorldProject
失败[INSTALL_FAILED_OLDER_SDK]
 

和在另一个窗口中有一个错误说

 无法附加测试记者测试框架或测试框架意外退出
 

什么似乎使该错误?

编辑:

AndroidManifest.xml中

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
          包=com.test.helloworld
          安卓版code =1
          机器人:VERSIONNAME =1.0>

    <用途-SDK
            安卓的minSdkVersion =8
            机器人:targetSdkVersion =17/>

    <应用
            机器人:allowBackup =真
            机器人:可调试=真
            机器人:图标=@可绘制/ ic_launcher
            机器人:标签=@字符串/ APP_NAME
            >
        <活动
                机器人:名称=com.example.HelloWorldProject.MyActivity
                机器人:标签=@字符串/ APP_NAME>
            <意向滤光器>
                <作用机器人:名称=android.intent.action.MAIN/>

                <类机器人:名称=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
        < /活性GT;
    < /用途>

< /舱单>
 

解决方案

在我改变了

  defaultConfig {
    的applicationIDcom.example.bocheng.myapplication
    的minSdkVersion 15
    targetSdkVersion'L'#change这19
    版本code 1
    VERSIONNAME1.0
}
 

build.gradle 文件。

它的工作原理

I got this Froyo (2.2) device that I am using to make an app. When I try to run the app directly to the device it shows an error saying

pkg: /data/local/tmp/com.example.HelloWorldProject
Failure [INSTALL_FAILED_OLDER_SDK]

and in another window there's an error saying

Unable to attach test reporter to test framework or test framework quit unexpectedly

What seem to make the said errors?

EDIT:

AndroidManifest.xml

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

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

    <application
            android:allowBackup="true"
            android:debuggable="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            >
        <activity
                android:name="com.example.HelloWorldProject.MyActivity"
                android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

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

</manifest>

解决方案

After I changed

defaultConfig {
    applicationId "com.example.bocheng.myapplication"
    minSdkVersion 15
    targetSdkVersion 'L' #change this to 19
    versionCode 1
    versionName "1.0"
}

in build.gradle file.

it works

这篇关于什么&QUOT;失败[INSTALL_FAILED_OLDER_SDK] QUOT;意味着Android的工作室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆