Im trying to install androidSDK on my Ubuntu but when i try to run the SDK manager on the tools/bin/sdkmanager folder i get this message:
My Ubuntu was installed rec
Using the docs as guide I was able to make it work moving the installation to the following path in Windows: %LocalAppData%\Android\android-sdk\cmdline-tools\2.1 for version 2.1. Similar to what shahab Uddin suggested but with - instead of _ in android-sdk.
Your version can be checked in the source.properties file.
After messing around with the console, i think i found out what is happening. Apparently there's a bug in the way the SDK locates the SDK installation folder.
So all i needed to do way specify it by using --sdk_root=${ANDROID_HOME} after exporting the path with export ANDROID_HOME=~/Android/Sdk
So the full command was yes | ~/Android/Sdk/tools/bin/sdkmanager --sdk_root=${ANDROID_HOME} --version
Got the solution from another post: Android Command line tools sdkmanager always shows: Warning: Could not create settings
Android SDK Tools now rest in following location: "android_sdk/cmdline-tools/version/bin/";
Therefore to solve this problem in Windows (same can be replicated in other OS), do the following:
Inside your android_sdk folder, create the folder: cmdline-tools and inside it create another folder: version extract / put all your files "/bin /lib NOTICE and sources.properties" files inside this version folder.
Set ANDROID_HOME to your android_sdk folder.
android_sdk\cmdlineAndroidSDK\cmdline-tools\version\bin\Similarly, place your Android SDK Platform Tools inside your android_sdk/platform-tools/ and add corresponding PATH to ENVIRONMENTAL VARIABLES under System Variables