Last active
August 29, 2015 14:12
-
-
Save djom202/281e006b15da1aadbb2e to your computer and use it in GitHub Desktop.
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 Ionic to dev android app on ubuntu 14.04 | |
0. Instal ubuntu-14.04-desktop-amd64.iso | |
sudo apt-get update | |
sudo apt-get install exfat-fuse exfat-utils | |
sudo reboot | |
1. Copy jdk-7u60-linux-x64.tar.gz, apache-ant-1.9.4-bin.tar.gz to /opt and copy adt-bundle-linux-x86_64-20140321.zip to HOME/android | |
cd /opt | |
sudo tar zxvf jdk-7u60-linux-x64.tar.gz | |
sudo tar zxvf apache-ant-1.9.4-bin.tar.gz | |
cd ~/android | |
unzip adt-bundle-linux-x86_64-20140321.zip | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386 | |
sudo gedit /etc/environment | |
add: | |
PATH=":/opt/jdk1.7.0_60/bin:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/platform-tools:/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk/tools:/opt/apache-ant-1.9.4/bin" | |
CLASSPATH="/opt/jdk1.7.0_60/lib" | |
JAVA_HOME="/opt/jdk1.7.0_60" | |
ANDROID_HOME="/home/xxx/android/adt-bundle-linux-x86_64-20140321/sdk" | |
ANT_HOME="/opt/apache-ant-1.9.4" | |
sudo reboot | |
2. sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
node -v | |
npm -v | |
3. sudo apt-get install git-core | |
sudo npm install -g cordova | |
sudo npm install -g gulp | |
sudo npm install -g ripple-emulator | |
sudo npm install -g ionic | |
4. Create AVD "myIonic" (android create avd -n myIonic -t android-19) | |
ionic start myApp tabs | |
cd myApp | |
ionic platform add android | |
ionic build android | |
ripple emulate --path www | |
ionic emulate android | |
update | |
sudo apt-get install curl | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
sudo npm update -g npm | |
sudo npm update -g cordova |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment