除了sdk外,我如何安装以前版本的构建工具? [英] How do I install a previous version of build tools in addition to the sdk?

查看:67
本文介绍了除了sdk外,我如何安装以前版本的构建工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建一个需要早期版本的Android SDK的android项目并构建工具:

I trying to build an android project that needs a previous version of the Android SDK and build tools: https://github.com/googlevr/gvr-android-sdk.git (android-24)

在Android Studio中,我转到SDK管理器并安装了以前的版本:

In Android studio I went to the SDK manager and installed the previous version:

但是当我去尝试用grandle构建项目时,出现此错误:

But when I went to try build the project with grandle I get this error:

Failed to find Build Tools revision 24.0.0

看起来像sdk管理器没有安装构建工具.我该怎么做.

Looks like sdk manager didnt install the Build Tools. How do I do this.

推荐答案

这是android-studio的错误/缺失功能吗?

So this is a bug/missing feature of android-studio?

我必须直接从以下位置运行SDK管理器:C:\Users\<User Name>\AppData\Local\Android\sdk\,在那里我可以看到与sdks分开的构建工具.除非我缺少任何东西,否则我不会在工作室中看到它.从SDK Manager安装的工作原理是:

I had to run the SDK manager directly from: C:\Users\<User Name>\AppData\Local\Android\sdk\ and in there I could see the build tools broken out separately from the sdks. Unless I'm missing something I didn't see that in studio. Installing from SDK Manager worked:

很好奇,此过程如何自动化?我如何让一个项目自动下载其所有依赖关系,而不必在Studio中运行grandle,是否抛出错误,下载缺少的依赖关系,然后重试?

Just curious, how is this process automated? How can I have a project automatically download all its dependancies without have to run grandle in studio, have it throw and error, download missing dependancies, and try again?

这篇关于除了sdk外,我如何安装以前版本的构建工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆