First of all, I confess that I'm a Linux beginner and I currently use the updated Luna Elementary OS. So it's been really hard for me to sort this out.
I was able to install the entire NPM stack (Ionic, Cordova, Angular.js) and quiet Java. But at the time of installing the Android SDK tools (without IDE) in ubuntu I found it very complicated so I used this shell script to install everything automatically.
It worked, I installed the SDK, but at the time of creating the IONIC platform of this error: