Installing Android SDK cmd line tools on bookworm64 linux.

os62

New member
Mar 27, 2025
4
0
1
I have been trying to install Android Studio on BookWorm64 puppy linux (debian based), (to compile SDL2 apps to Android) but its large (8gb) and problematic..

So I decided to setup a new copy of BookWorm64 with just the command line build tools. If you look at:

https://developer.android.com/studio


You will see the linux build tools zip is 160mb. (it downloads more later, but you can be selective)

So with a new bw64+devx, i first install latest java (apt install default-jdk), unzip tools to "/root/Android/Sdk/cmdline-tools" then run
Code:
  bin/sdkmanager --list
but whatever commands i give, it says
Error: could not determine SDK root.
I have tried
bin/sdkmanager --sdk_root="/root/Android/Sdk"
and many more, but to no avail. Surely this is the tool to INITIATE the sdk!? There is no sdk root set yet! This is Androids doc on it:

https://developer.android.com/tools/sdkmanager


I have also downloaded the NDK, but have yet to unzip it, unsure how to set that up. (sdk first?)

Has anyone tried this? Ideas welcome..
 
PS: As i said I am trying to build SDL2 programs for Android, see:

 

Trending Posts

Forum statistics

Threads
954,039
Messages
6,960,328
Members
3,162,904
Latest member
lray83