欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

程序员文章站 2022-07-03 17:22:34
打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决从其他地方拷过来的AndroidStudio项目,打开项目后报错“Failed to find Build Tools revision 26.0.2”,在Event Log中显示“Gradle sync failed: Failed to find Build Tools revision 26.0.2 .....

从其他地方拷过来的AndroidStudio项目,打开项目后报错“Failed to find Build Tools revision 26.0.2”,在Event Log中显示“Gradle sync failed: Failed to find Build Tools revision 26.0.2             Consult IDE log for more details (Help | Show Log) (406 ms)”,现象如图所示:

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

原因:本地的编译工具缺少 26.0.2的版本,在Android/Sdk/build-tools文件夹下检查现有编译工具,发现缺少26.0.2版本工具。

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

解决办法:只要在AndroidStudio中安装26.0.2版本的编译工具即可。

(1)打开菜单“Settings-->Appearance & Behavior-->System Settings->Android SDK-->SDK Tools”,如图:

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

(2)勾选右下角“Show Package Details”,即可看到26.0.2的工具未安装,勾选26.0.2,点击按钮“Apply”进行安装即可。

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

(3)安装完毕,关闭项目,重新打开项目,发现不再报错,问题成功解决。

打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决

本文地址:https://blog.csdn.net/xinbadar/article/details/110226396