问题
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
andbuild-tool
. I am able to installPlatform-tools
from the command prompt. But, when I try to installBuild-tools
, it says it is not there. I need to installAppium
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