天天看點

Android Studio 0.8.0解決 Failure [INSTALL_FAILED_OLDER_SDK] 問題

http://stackoverflow.com/questions/24465289/android-studio-failure-install-failed-older-sdk

新安裝的Android Studio 運作程式出現這樣的錯誤:Failure [INSTALL_FAILED_OLDER_SDK]

需要修改 HelloWordTest\app\build.gradle 内容,具體如下

//

apply plugin: 'com.android.application'

android {

    compileSdkVersion 14

    buildToolsVersion "20.0.0"

    defaultConfig {

        applicationId "com.example.lenovo.hellowordtest"

        minSdkVersion 14

        targetSdkVersion 14

        versionCode 1

        versionName "1.0"

    }

    buildTypes {

        release {

            runProguard false

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }

    }

}

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])

}

//

可以參照:http://stackoverflow.com/questions/24465289/android-studio-failure-install-failed-older-sdk(需要翻牆)