【发布时间】:2014-06-28 09:04:19
【问题描述】:
今天我下载了 Android Studio v 0.8.0 beta。我正在尝试在 SDK 17 上测试我的应用程序。 Android工作室错误Failure [INSTALL_FAILED_OLDER_SDK]
这是我的安卓清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vahe_muradyan.notes" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".Main_Activity"
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>
好像android studio使用build.gradle中的配置。这里是build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 'L'
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.vahe_muradyan.notes"
minSdkVersion 8
targetSdkVersion 'L'
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
}
【问题讨论】:
-
将此代码添加到您的 AndroidManifest.xml
-
同样的错误。 pkg: /data/local/tmp/com.vahe_muradyan.notes 失败 [INSTALL_FAILED_OLDER_SDK]
-
你测试了哪台设备?
-
SDK 版本 17 , Android 4.2.1
-
Eclipse 在我的设备上很好地测试了应用程序。今天我已经下载了 Android Studio,我现在遇到了这个错误。
标签: android gradle android-studio