Android的工作室摇篮BuildTools修订 [英] Android Studio Gradle BuildTools Revision
问题描述
我有一个Android项目的Android工作室0.5.9和摇篮抛出这个错误:
I have an Android Project in Android Studio 0.5.9 and Gradle is throwing this error:
Error:The SDK Build Tools revision (17.0.0) is too low. Minimum required is 19.0.0
我已经安装了SDK构建工具修订19从SDK管理器,这里是我的build.gradle
I have already installed SDK Build Tools Revision 19 from the SDK Manager and here is my build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.10.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion "19.0.0"
defaultConfig {
minSdkVersion 9
targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'Manantiales/src/main/AndroidManifest.xml'
}
}
}
我如何告诉摇篮使用生成工具19如果已经安装?
How do I tell gradle to use the Build Tools 19 if it's already installed?
编辑:我打上了不同的答案为最佳答案,因为这是工作了大多数人的一个
I marked a different answer as The Best Answer because it was the one that worked for most people
推荐答案
我今天早上更新到.6.0后有同样的问题。你需要改变你的/projectName/build.gradle摇篮版
I had the same problem this morning after updating to .6.0. You need to change you gradle version in /projectName/build.gradle
classpath 'com.android.tools.build:gradle:0.11.+'
打开SDK管理器和下载的构建工具的新版本19.1 ,然后更改以下行中/projectName/moduleName/build.gradle
Open your SDK manager and download the new version of the build tools 19.1 then change the following line in /projectName/moduleName/build.gradle
android {
compileSdkVersion 19
buildToolsVersion "19.1" //This version needs to be updated to 19.1 after SDK update
...
}
和同步您的摇篮文件,你应该是好去!
这篇关于Android的工作室摇篮BuildTools修订的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!