简体   繁体   中英

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 project sync failed

Failed to find target with hash string 'android-26' in: 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:

SDK Tools

When trying to update the Build-Tools through the SDK manager I got the following error:

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)". Failed packages: - 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 . Download android-26.zip from Google repository and extract it to the said path above. Clean & Rebuild your project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM