我无法使用附加组件安装SDK命令工具 [英] I am not able to install SDK command tool with add-ons
问题描述
-
我已经成功安装了Java.设置变量路径,在命令中检查Java版本.
I have successfully installed java. Set the variable path, check java version in the command .
现在,在Windows 32上下载SDK工具的.zip文件.
Now, download .zip file for SDK tool on windows 32.
提取文件并保存.现在,我要安装Platform-tool
和build-tool
.我可以从命令提示符下安装Platform-tools
.但是,当我尝试安装Build-tools
时,它说它不存在.正确安装后,我需要安装Appium
.
Extract the file and saved it. Now, I want to install Platform-tool
and build-tool
. I am able to install Platform-tools
from the command prompt. But, when I try to install Build-tools
, it says it is not there. I need to install Appium
once I get it right.
C:\ sdktools \ tools \ bin> sdkmanager.bat构建工具" 警告:无法加载文件C:\ Users \ Aradhana.android \ repositories.cfg. 警告:无法找到软件包构建工具 [===] 10%的计算更新..
C:\sdktools\tools\bin>sdkmanager.bat "Build-tools" Warning: File C:\Users\Aradhana.android\repositories.cfg could not be loaded. Warning: Failed to find package Build-tools [=== ] 10% Computing updates..
我在命令提示符下也收到以下错误消息 找不到androidrepositry.
I also get following error message in my command prompt androidrepositry is not found.
推荐答案
没有名称为build-tools
的sdk软件包.它们在软件包系统中版本化.因此,您需要使用build-tools;28.0.1
这样的名称进行安装(当前最新版本).
但是,平台工具没有这种版本控制.目前只有一个Platform-tools软件包,其名称为platform-tools
.这就是为什么起作用的原因.
There is no sdk package with the name build-tools
. They are versioned in the package system. So you need to install it with a name like this build-tools;28.0.1
(the latest version currently).
Platform-tools, however, do not have that kind of versioning. There is just one platform-tools package present and it has the name platform-tools
. That's why that works.
要签出,可以通过sdk管理器安装什么,可以传递--list
标志.
To check out, what you can install via the sdk manager you can pass the --list
flag.
关于存储库文件的警告不应引起任何问题(至少我从未遇到过因该警告而引起的问题).但是,如果要避免出现此警告,则可以创建一个空的存储库文件.
The warning about the repositories file should not cause any problems (at least I never faced a problem due with that warning). You can, however, create an empty repositories file, if you want to avoid the warning.
这篇关于我无法使用附加组件安装SDK命令工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!