Skip to content

Instantly share code, notes, and snippets.

@RyanParsley
Last active June 2, 2017 18:35
Show Gist options
  • Select an option

  • Save RyanParsley/68244aa9cdea5d5fe0981e22c293bcc2 to your computer and use it in GitHub Desktop.

Select an option

Save RyanParsley/68244aa9cdea5d5fe0981e22c293bcc2 to your computer and use it in GitHub Desktop.
I'm running through and journalling all the steps need to get a clean mac ready to develop with cordova.

Setup and sanity check

Download and install Android Studio

This will set $ANDROID_HOME for you, but not update your PATH so android dev tools are available via the command line.

Update your PATH

Add export PATH=$PATH:~/Library/Android/sdk/tools to your .[whatever]rc file.

Configure a Virtual Device for testing

Click the little android icon in android studio and accept all default settings until you have a virtual device installed.

Install Cordova and build hello world app

Follow steps found here: https://cordova.apache.org/#getstarted

Clone an existing project and build it

git clone [project url]
cd [project path]
npm install
grunt build cordova
cordova platform add android
cordova build android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment