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

 

posted @ 2018-12-10 09:01  b0b0  阅读(6556)  评论(0编辑  收藏  举报