简体   繁体   English

未安装任何版本的Android SDK Build-Tools

[英]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时:

SDK Tools SDK工具

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.

相关问题 找不到android sdk构建工具 - cant find android sdk build-tools 什么是Android SDK构建工具,平台工具和工具?应该使用哪个版本? - What are the Android SDK build-tools, platform-tools and tools? And which version should be used? " "tns doctor" "你需要在你的系统上安装 Android SDK Build-tools。 但一切都已安装 - "tns doctor" "You need to have the Android SDK Build-tools installed on your system." but everything is installed 什么是Android SDK构建工具,平台工具和工具? - What is Android SDK build-tools, platform-tools and tools? tns 医生,需要安装 Android SDK 构建工具(Windows 10) - tns doctor, need the Android SDK Build-tools installed (Windows 10) Android SDK Manager中没有Android SDK构建工具选项 - No option of Android SDK Build-tools in Android SDK Manager 如何在azure管道中手动选择android sdk构建工具版本? - How to manually select the android sdk build-tools version in azure pipeline? SDK Manager没有看到新版本的构建工具 - SDK Manager doesn't see new version of build-tools 我需要适用于sdk管理器的新版本的构建工具 - I need new version of build-tools for sdk manager 我可以删除较旧的Android SDK Build-tools软件包吗? - Can I delete older Android SDK Build-tools packages?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM