Created
April 3, 2018 06:40
-
-
Save tahmidsadik/b217785ebf0818a18f3ff692c31a4594 to your computer and use it in GitHub Desktop.
Installing Android SDK for react-native without android-studio in arch
This file contains hidden or 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
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks