I am not able to install SDK command tool with add-ons

北城余情 提交于 2020-04-30 12:11:20

问题


  • I have successfully installed java. Set the variable path, check java version in the command .

  • Now, download .zip file for SDK tool on windows 32.

  • 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 "Build-tools" Warning: File C:\Users\Aradhana.android\repositories.cfg could not be loaded. Warning: Failed to find package Build-tools [=== ] 10% Computing updates..

  • I also get following error message in my command prompt androidrepositry is not found.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/51283357/i-am-not-able-to-install-sdk-command-tool-with-add-ons

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!