简体   繁体   English

如何在 Android Studio 中安装构建工具

[英]How to install build tools in Android Studio

it shows to install build tools revision 26.0.2 but the first time it showed I clicked and downloaded it but it was cancelled due to my network error and the second time when I clicked ,it is not downloading它显示安装构建工具修订版 26.0.2 但第一次显示我单击并下载它但由于我的网络错误而被取消,第二次单击时,它没有下载

can anybody tell me how to download it ??谁能告诉我怎么下载??

在此处输入图片说明

Restart Android Studio and the message should be shown again.重新启动 Android Studio,应该会再次显示该消息。 You can also do it from Android SDK.您也可以从 Android SDK 执行此操作。 Go to tools-> Android-> SDK Manager.转到工具-> Android-> SDK 管理器。 There you can install everything you need.在那里你可以安装你需要的一切。 If you need more details about what is already installed, check show details checkbox.如果您需要有关已安装内容的更多详细信息,请选中显示详细信息复选框。

Update your android gradle plugin to 3.0.1 .将您的 android gradle 插件更新到3.0.1 In your project level build.gradle在您的项目级别build.gradle

dependencies {
    classpath 'com.android.tools.build:gradle:3.0.1'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

Go to your module level build.gradle file and remove the line that says转到您的模块级build.gradle文件并删除说

buildToolsVersion '26.0.2'

It will automatically use a minimum default.它将自动使用最小默认值。

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

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