Skip to content

Instantly share code, notes, and snippets.

@mtzaldo
Forked from grigio/Android SDK on LInux
Last active November 15, 2016 17:20
Show Gist options
  • Save mtzaldo/069feb757b5599b23b8f37c5ecef1d6c to your computer and use it in GitHub Desktop.
Save mtzaldo/069feb757b5599b23b8f37c5ecef1d6c to your computer and use it in GitHub Desktop.
### NodeJS >=4
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install nodejs
sudo ln -s /usr/bin/nodejs /usr/bin/node # if node command is unavail
node -v # check if you have the correct version v5.x.x
sudo npm install -g react-native-cli
### Java
sudo apt-get install lib32stdc++6 lib32z1 openjdk-7-jdk
### Android SDK or Android Studio
http://developer.android.com/sdk/index.html#Other
###How to install from console:
http://blog.sqr5.com/2015/05/installing-android-sdk-using-command.html
android list sdk --all
###This must be installed:
Android SDK Tools
Android SDK Platform Tools
Android SDK Build Tools
###Android 6.0
SDK Platform 23.0.1
Intel x86 Atom_64 System Image
###Extras
Android Support Repository, revision 39
Intel x86 Emulator Accelerator (HAXM Installer)
### Android SDK e ENV
~/.bashrc, ~/.profile, global: /etc/profile
export ANDROID_HOME=/usr/local/opt/android-sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
### Setup Emulator
android
## Example app init
react-native init ReactNativeDemo && cd ReactNativeDemo
## Example app run
android avd
react-native run-android
sudo react-native start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment