Created
September 16, 2021 23:26
-
-
Save petabyt/32def2ea5b13b848d511b4ee24906392 to your computer and use it in GitHub Desktop.
AndroidTools Debian setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create local.properties | |
touch local.properties | |
echo 'sdk.dir=/usr/lib/android-sdk/' > local.properties | |
echo 'ndk.dir=/usr/lib/android-ndk/' >> local.properties | |
@echo 'Installing android stuff via apt. (Ctrl+c to stop)' | |
@read | |
# All packages that *might* be needed | |
sudo apt install android-sdk android-sdk-platform-23 | |
sudo apt install google-android-ndk-installer | |
sudo apt install openjdk-8-jdk | |
sudo apt install libncurses5 | |
sudo apt install cmake | |
# Accept SDK licenses | |
@echo 'Accepting license..' | |
git clone https://github.com/Shadowstyler/android-sdk-licenses.git | |
sudo cp -a android-sdk-licenses/*-license /usr/lib/android-sdk/licenses | |
rm -rf android-sdk-licenses |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment