简体   繁体   English

SDK工具Android Studio错误

[英]Error for SDK tools Android Studio

I've started to learn to make Android apps recently but I've faced a problem in launching Android Studio! 我最近开始学习制作Android应用程序,但是在启动Android Studio时遇到了问题!

I downloaded android studio and also downloaded SDK tools from here ( I downloaded them separately ) and when I give SDK path to the Studio, it installs SDK successfully but when the project opens, it says that some Android SDK tools are missing! 我下载了android studio,还从此处下载了SDK工具(我分别下载了它们),当我给Studio提供SDK路径时,它成功安装了SDK,但是当项目打开时,它说缺少一些Android SDK工具!

Error :Gradle sync failed: Failed to find target with hash string 'android-26' in: E:\\android-sdk 错误:Gradle同步失败:无法在E:\\ android-sdk中找到哈希字符串为“ android-26”的目标

I'm confused because I can find no problem in my downloading and installing but there is an error! 我很困惑,因为我的下载和安装没有问题,但是有错误!

What should I do? 我该怎么办?

install android studio and sdk also( not separately) then create a new project and build them, and if it work then, you can move your sdk file and then connect the path your sdk. 还要安装android studio和sdk(不要单独安装),然后创建一个新项目并进行构建,如果可以,则可以移动sdk文件,然后连接sdk路径。 i think you tried separately and some how any data are being missing . 我认为您分别尝试过,并且有些数据丢失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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