How to install IONIC with Android on Mac OSX

1

I'm trying to install Android on Mac OSX to start my studies in Apps Development.

I have successfully installed NPM, Cordova and IONIC. I also downloaded Android Studio and downloaded some versions of the Android SDK.

Now I need to configure the environment to be able to run the command:

ionic add platform android

I've tried it in several ways, for several tutorials, but I'm still seeing the following error:

Can anyone help me set it up? Thanks!

    
asked by anonymous 04.06.2016 / 06:21

1 answer

0

Following you already do the installations you said Nodejs, CORD, and ionic you still have to do some installations and configurations.

Following the sequence:

Install Git! link

Install Bower! npm install bower -g or sudo npm install bower -g

Install Grunt! npm install gulp -g or sudo npm install gulp -g

And then install your favorite code editor (Sublime Text:)).

To check if everything is ok, run the "ionic info" command without the quotes and check if there is no error!

Then, in the sequence, prepare the environment variables! For Android follow ( link platforms_android_index.md.html # Android% 20Platform% 20) For iOS follow (h t tp: //cordova.apache.org/docs/en/edge/guide_ platforms_ios_index.mtml.html # iOS% 20Platform% 20)

You can now export a Hello World project to start studying, by following this command you can create an Ionic application in your environment!

ionic start -a "Example 1" -i app.example.one example1 blank

If you want something more incremental to learn just touch the command blank by tabs or sidemenu to generate apps with a template with more features one with Tabs and others with Side Menu.

Next step is to test the application first in the browser and check the run run inside the created folder of your "ionic serve" project without quotation marks of course, that this will open your browser and running your application created. >

Once you've done that, you can start adding platforms and testing on real devices, and emulators follow the command to add the Android platform to your project.

ionic platform add android (this is the correct command and not the way indicated in the question)

in sequence for testing on the emulator.

ionic emulate android

    
17.06.2016 / 21:48