[英]No version of Android SDK Build-Tools installed
My Gradle project sync is failing in Android Studio and it is showing the following errors: 我的Gradle项目同步在Android Studio中失败,并显示以下错误:
Gradle project sync failed Gradle项目同步失败
Failed to find target with hash string 'android-26' in: C\\Users\\... 无法在以下位置找到带有哈希字符串“ android-26”的目标:C \\ Users \\ ...
To fix this I tried to install android API 26 but when I did I realized that no version of the Android SDK Build-Tools was installed: 为了解决这个问题,我尝试安装android API 26,但是当我意识到没有安装任何版本的Android SDK Build-Tools时:
When trying to update the Build-Tools through the SDK manager I got the following error: 尝试通过SDK管理器更新Build-Tools时,出现以下错误:
To install: - Android SDK Build-Tools 27.0.1 (build-tools;27.0.1) Preparing "Install Android SDK Build-Tools 27.0.1 (revision: 27.0.1)". 要安装:-Android SDK Build-Tools 27.0.1(build-tools; 27.0.1)准备“安装Android SDK Build-Tools 27.0.1(修订:27.0.1)”。 Failed packages: - Android SDK Build-Tools 27.0.1 (build-tools;27.0.1)
失败的软件包:-Android SDK Build-Tools 27.0.1(build-tools; 27.0.1)
Does anyone have any advice on how to get past this issue? 有人对如何解决此问题有任何建议吗?
you're missing platform android-26
which must be placed in subfolder platform of SDK
. 您缺少必须放置在
SDK
子文件夹平台中的android-26
平台。 Download android-26.zip
from Google repository and extract it to the said path above. 从Google存储库下载
android-26.zip
并将其解压缩到上述路径。 Clean & Rebuild your project. 清理并重建您的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.