Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tahmidsadik/b217785ebf0818a18f3ff692c31a4594 to your computer and use it in GitHub Desktop.
Save tahmidsadik/b217785ebf0818a18f3ff692c31a4594 to your computer and use it in GitHub Desktop.
Installing Android SDK for react-native without android-studio in arch
#!/bin/bash
yaourt -S android-sdk
export ANDROID_HOME=/opt/android-sdk
export PATH=$PATH:$ANDROID_HOME/tools/bin
touch ~/.android/repositories.cfg
# arch specific
# the sdk is installed in /opt and the user don't have permission
sudo sdkmanager "platforms;android-23" "build-tools;23.0.1" "add-ons;addon-google_apis-google-23"
# create a system image for the emulator
sudo sdkmanager "system-images;android-23;google_apis;x86_64"
@nilscox
Copy link

nilscox commented May 30, 2018

Nice, thanks!
I also had to enable the multilib repository and install lib32-glibc and lib32-zlib though.

@muhammadbahtiars
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment