Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
ChromeOS Linux: Debian, how do I install Android SDK manager via command line?
ChromeOS Linux: Debian, how do I install Android SDK manager via command line?
I wanted to try this repo https://github.com/JetBrains/compose-multiplatform/tree/master/examples/imageviewer and I got pretty far by doing this:
sudo apt install openjdk-17-jdk
sudo apt install kotlin
sudo apt install android-sdk
export ANDROID_HOME=/usr/lib/android-sdk
git clone https://github.com/JetBrains/compose-multiplatform.git
cd examples/imageviewer
./gradlew build
Also tried running sudo apt install android-sdk-platform-23
but it did not work.
Then I got the error You have not accepted the license agreements of the following SDK components
so the error message said I should execute ./sdkmanager.bat --licenses
which is ./sdkmanager --licences
on Linux.
So how should I install sdkmanager
on Debian?
CONTRIBUTING.md
AndroidTools - Debian Wiki,
thank you HansChrisophSteiner et al,
https://wiki.debian.org/AndroidTools
You have not accepted the license agreements of the following SDK components [duplicate],
thank you Hugo,
https://stackoverflow.com/a/43003932
1 answer
sudo apt install sdkmanager
Solved it for me. And then I had to run this to fix the licensing issues:
sudo chmod -R 777 /usr/lib/android-sdk/
sdkmanager --licenses
./gradlew build
sudo chmod -R 755 /usr/lib/android-sdk/
0 comment threads