1. First you have to install latest version of Java JDK, ie JDK 8.
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default
This will install install JDK 8 on your Ubuntu machine and will set the java 8 as default.
2. Install node.js
sudo apt-get install -y nodejs
3. After that you should install Android Studio and the Android SDK from Google (https://developer.android.com/sdk/index.html)
4. Then install Ionic CLI and related tools.
sudo apt-get install git ruby sudo gem install compass sudo npm install -g cordova ionic grunt-cli bower gulp
Create a new project using ionic cli tool
ionic start ProjectName --v2 cd ProjectName ionic serve