简体   繁体   English

尝试在Android Studio 0.6.1上创建新项目时收到Gradle同步错误

[英]I get a Gradle sync error when I try to create a new project on Android Studio 0.6.1

The error I get: 我得到的错误:

Error:The SDK Build Tools revision (19.0.3) is too low for project ':app'. Minimum required is 19.1.0

How do I change the SDK build tools version? 如何更改SDK生成工具的版本?

You have to go into your build.gradle file and change your Build to this: 您必须进入build.gradle文件并将Build更改为此:

android { compileSdkVersion 19 buildToolsVersion "19.1.0"

It should be located in your project folder (the one that contains src and build folders). 它应该位于您的项目文件夹(包含src和build文件夹的文件夹)中。 If you can't find it in your build.gradle file, it's possible there's a second file that has this correct piece. 如果您在build.gradle文件中找不到它,则可能还有另一个文件具有正确的片段。 Note, only change the buildToolsVersion , don't add anything else. 注意,仅更改buildToolsVersion ,不要添加其他任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM