Last active
September 11, 2017 16:05
-
-
Save abernix/c41328c2a6bb7c24d92a to your computer and use it in GitHub Desktop.
meteor android sdk setup on ubuntu 15.10
This file contains 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
# Install NVM | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash | |
# Install Node Version 0.10.32 | |
# info: https://github.com/creationix/nvm | |
nvm install v0.10.32 | |
nvm use v0.10.32 | |
# Install requirements for Android SDK | |
# info: https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Linux | |
sudo apt-get update | |
sudo apt-get install --yes openjdk-7-jdk lib32z1 lib32stdc++6 | |
# Install Android Platform SDK v22 | |
# info: http://developer.android.com/sdk/installing/index.html | |
wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | |
tar xfvz android-sdk_r24.4.1-linux.tgz | |
./android-sdk-linux/tools/android update sdk --no-ui --filter android-22 | |
# Setup the PATH for Android | |
# (you'll probably want these in your login scripts) | |
export PATH=${PATH}:~/android-sdk-linux/tools | |
export PATH=${PATH}:~/android-sdk-linux/platform-tools | |
# Install Meteor (explicitely without any sudo) | |
curl https://install.meteor.com/ | sed -e "s/type sudo >\/dev\/null 2>&1/\ false /g" | sh | |
# Setup the PATH for Meteor | |
# (you'll want this in your startup scripts) | |
export PATH=${PATH}:~/.meteor/ | |
# Create Meteor App | |
meteor create my-app | |
cd my-app/ | |
meteor add-platform android --verbose | |
meteor run android | |
# Pr0fit. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment