Gradle sync failed: failed to find Build Tools revision 21.1.2

Posted biangbiang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Gradle sync failed: failed to find Build Tools revision 21.1.2相关的知识,希望对你有一定的参考价值。

从github上下载了一个开源项目到android Studio

出现以下问题:

下午2:56:05 Gradle sync started
下午3:00:11 Gradle sync failed: failed to find Build Tools revision 21.1.2
Consult IDE log for more details (Help | Show Log)

 

解决办法:

查找SDK安装目录\build-tools 下查看自己的BuildTools 版本,然后修改项目为该版本

android {
compileSdkVersion 21
buildToolsVersion "23.0.2"(本地版本为23.0.2)
  ...


以上是关于Gradle sync failed: failed to find Build Tools revision 21.1.2的主要内容,如果未能解决你的问题,请参考以下文章

Gradle sync failed: Gradle sync failed: Timeout waiting to lock cp_init remapped class cache for a2h

解决Gradle sync failed: Gradle Sync Issues问题(Android开发)

Gradle sync failed: failed to find Build Tools revision 21.1.2

Gradle工程错误:Gradle sync failed: Java home is different

android studio 更新 Gradle错误解决方法(Gradle sync failed)

Gradle sync failed: Connection timed out: connect