Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have downloaded the ZIP commandlinetools-win-9477386_latest.zip, from Android Studio official website, because my PC is very slow. And I prefer to create apps without the IDE.
Once unzipped, in the "bin" folder, there are the bat files.
apkanalyzer
avdmanager
lint
profgen
retrace
screenshot2
sdkmanager


What I have tried:

Set only the variable, ANDROID_HOME, with this path C:\commandlinetools-win-9477386_latest\cmdline-tools\bin

Which when executing the SDKMANAGER and the other bat all its possible options appear to me.

The problem occurs when executing the command.
sdkmanager --list --channel=0

Error: Could not determine SDK root.
Error: Either specify it explicitly with --sdk_root= or move this package into its expected location: <sdk>\cmdline-tools\latest\

Also in the documentation there are also other environment variables, but my question is.
How can I solve my error, and how can I install the NDK to be able to create apps with C++ libraries

I have read these pages but it is not very clear to me
https://developer.android.com/studio/command-line/variables?hl=es-419#android_home

https://developer.android.com/studio/projects/configure-agp-ndk?hl=es-419#:~:text=Para%20instalar%20el%20NDK%20desde%20la%20l%C3%ADnea%20de ,NDK%2C%20uses%20the%20following%20syntax%3A%20sdkmanager%20--install%20
Posted
Comments
Andre Oosthuizen 23-Feb-23 4:54am    
The answer is in your error description - "Either specify it explicitly with --sdk_root= or move this package into its expected location:"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900