Open edumco opened 4 years ago
Starting from Android SDK Command-line Tools 1.0.0 (6200805), in contrast to Android SDK 26.1.1 (4333796), the tools directory hierarchy has been changed. Previously it was placed right inside ANDROID_HOME, now it's still named as tools (the only thing you'll get after unpacking the downloaded commandlinetools zip file), but differently, you have to place it inside a directory called cmdline-tools on your own. The name cmdline-tools comes from its package name, where you can get from listing packages command sdkmanager --list, whose outputs include cmdline-tools;1.0 | 1.0 | Android SDK Command-line Tools.
Wrapping tools directory inside cmdline-tools directory would make it work ...
cmdline-tools
faz ele funcionar
cmdline-tools
should not be set as ANDROID_HOME ...
cmdline-tools
não deve ser usado como ANDROID_HOMEEscolha uma pasta pro ANDROID_HOME
Extraia commandlinetools.zip
numa pasta cmdline-tools
dentro de ANDROID_HOME
Adicione $ANDROID_HOME/cmdline-tools/tools/bin ao PATH
Quando chamamos o
sdkmanager
sem passar o parâmetrosdk_root
é exibida uma mensagem de erro e commandos não funcionam:Mensagem de erro:
Quando passamos um ponto ou o ANDROID_HOME o comando funciona: