打开项目报错Failed to find Build Tools revision 26.0.2(Failed to find Build Tools revision 26.0.2 )问题解决
程序员文章站
2022-03-23 11:21:37
打开项目报错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)”,现象如图所示:
原因:本地的编译工具缺少 26.0.2的版本,在Android/Sdk/build-tools文件夹下检查现有编译工具,发现缺少26.0.2版本工具。
解决办法:只要在AndroidStudio中安装26.0.2版本的编译工具即可。
(1)打开菜单“Settings-->Appearance & Behavior-->System Settings->Android SDK-->SDK Tools”,如图:
(2)勾选右下角“Show Package Details”,即可看到26.0.2的工具未安装,勾选26.0.2,点击按钮“Apply”进行安装即可。
(3)安装完毕,关闭项目,重新打开项目,发现不再报错,问题成功解决。
本文地址:https://blog.csdn.net/xinbadar/article/details/110226396
下一篇: 离散余弦变换原理及实现【转载】