To install Android SDK in Termux , you will have to follow some simple steps.

Requirements :

  • Java [apt install openjdk-17]

Steps :

  1. First of all you will have to download Android SDK
  2. Extract into share directory

     unzip -d $PREFIX/share
  3. Now make a wrapper for sdkmanager

     /data/data/com.termux/files/usr/share/android-sdk/tools/bin/sdkmanager \
         --sdk_root=/data/data/com.termux/files/usr/share/android-sdk "$@"

    and save it with name sdkmanager in $PREFIX/bin

  4. That’s it :)