DEV Community

Slothy
Slothy

Posted on

Setting up Android/Cordova on Mac in 2021

The documentation is beyond useless, to setup the directories you'll need this in your ~/.zshrc file:

export PATH="${HOME}/Library/Android/sdk/tools:${HOME}/Library/Android/sdk/platform-tools:${PATH}"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home"
Enter fullscreen mode Exit fullscreen mode

You can disregard the current documentation, it references .bash_profile which is no longer the default on Mac, and ignores its own instructions about how to setup the paths, thanks Cordova!

Top comments (0)