Abe*_*ejo 37 android android-2.2-froyo android-studio
我得到了这个用于制作应用程序的Froyo(2.2)设备.当我尝试将应用程序直接运行到设备时,它显示错误说明
pkg: /data/local/tmp/com.example.HelloWorldProject
Failure [INSTALL_FAILED_OLDER_SDK]
Run Code Online (Sandbox Code Playgroud)
在另一个窗口中有一个错误说
Unable to attach test reporter to test framework or test framework quit unexpectedly
Run Code Online (Sandbox Code Playgroud)
什么似乎使所述错误?
编辑:
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>
Run Code Online (Sandbox Code Playgroud)
che*_*gbo 28
我换了之后
defaultConfig {
applicationId "com.example.bocheng.myapplication"
minSdkVersion 15
targetSdkVersion 'L' #change this to 19
versionCode 1
versionName "1.0"
}
Run Code Online (Sandbox Code Playgroud)
在build.gradle文件中.
有用
hic*_*123 22
这个错误
Failure [INSTALL_FAILED_OLDER_SDK]
Run Code Online (Sandbox Code Playgroud)
表示您尝试安装的应用程序minSdkVersion在其清单中指定的值高于设备的API级别.将该号码更改为8它应该有效.我不确定其他错误,但可能与此错误有关.
iBa*_*aff 10
除了检查正确minSdkVersion的build.gradle,请确保你已经安装了所有必要的tools,正确的SDK Platform为您首选的Android版本中SDK Manager.在Android Studio中,点击工具 - > Android - > SDK Manager.然后至少安装(对于没有模拟器的Android 2.2):
这对我有用.
| 归档时间: |
|
| 查看次数: |
123096 次 |
| 最近记录: |