我有一个Froyo (2.2)设备,我用它来制作一个应用程序。当我试图将应用程序直接运行到设备时,它会显示一个错误:
pkg: /data/local/tmp/com.example.HelloWorldProject
Failure [INSTALL_FAILED_OLDER_SDK]在另一个窗口里有个错误
Unable to attach test reporter to test framework or test framework quit unexpectedly是什么造成了上述的错误?
编辑:
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>发布于 2014-07-02 17:11:49
在我改变后
defaultConfig {
applicationId "com.example.bocheng.myapplication"
minSdkVersion 15
targetSdkVersion 'L' #change this to 19
versionCode 1
versionName "1.0"
}在build.gradle文件中。
它起作用了
发布于 2013-12-16 22:33:12
这一错误
Failure [INSTALL_FAILED_OLDER_SDK]这意味着您正在尝试安装一个应用程序,其清单中指定的minSdkVersion比设备的API级别要高。将该数字更改为8,它应该可以工作。我不确定另一个错误,但可能与这个错误有关。
发布于 2014-07-07 17:25:34
除了在build.gradle中检查正确的build.gradle之外,还要确保您已经安装了所有必要的tools,并在SDK Manager中为您喜欢的安卓版本更正了SDK Platform。在Android中,Tools上的、->、、、->、、SDKManager。然后至少安装(对于没有模拟器的Android2.2):
这就是对我起作用的东西。
https://stackoverflow.com/questions/20622255
复制相似问题