1. 程式人生 > >android stdio 編譯專案報Error:Failed to find target with hash string 'android-24

android stdio 編譯專案報Error:Failed to find target with hash string 'android-24

android stdio 編譯專案報Error:Failed to find target with hash string 'android-24

 

  • 檢視已有的SDK

 

 

 

  • 設定專案的sdk為 25

 

android {

compileSdkVersion 25

buildToolsVersion "25.0.0"

defaultConfig {

applicationId "com.accessibility"

minSdkVersion 14

targetSdkVersion 25

versionCode 1

versionName "1.0"

}

buildTypes {

release {

minifyEnabled false

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

}

}

}

 

編譯之後一切OK