Wednesday, April 2, 2014

Phonegap and setting Android using command line on mac

It's work cordova Android for MAC 1000000000%. I fought solution and now i'm working try this . 
STEPS:
Open Your Terminal and followed by,
  1. touch ~/.bash_profile;
  2. open ~/.bash_profile
  3. PATH="/Users/System-Name/Documents/android-sdk-macosx/tools:/Development/android-sdk-macosx/platform-tools:$PATH" (This is Android SDK Location to stored in My system )
enter image description here
4.Save the file and quit the text editor.
5.Execute your .bash_profile to update your PATH.
6.source ~/.bash_profile
if You want to see your Environment path:
7.In your Terminal Type: set
After you can see like
enter image description here
8.As far as your made it very correct. After your enter command like cordova platform add android. you get following error. because Java SDK doesn't too set environment PATH.
enter image description here
9.open ~/.bash_profile. Add JAVA SDK PATH


No comments:

Post a Comment