Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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?

+0
−0

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

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

1 answer

+1
−0
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/
History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »