After updating to meteor 1.2, I am not able to get my app to build for android. I have followed the instructions on https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Mac to the end.
I get the following error when I run meteor run android-device --verbose
:
Getting installed version for platform android in Cordova project
Getting installed version for platform ios in Cordova project
Checking Cordova requirements for platform Android
Your system does not yet seem to fulfill all requirements to build apps for
Android.
Please follow the installation instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on- Mac
Status of the requirements:
✓ Java JDK
✓ Android SDK
✗ Android target: Android SDK not found. Make sure that it is installed. If it
is not at the default location, set the ANDROID_HOME environment variable.
✓ Gradle
I have run rm -rf .meteor/local
, export ANDROID_HOME=~/Library/Android/sd
, export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-toolsexport ANDROID_HOME=~/Library/Android/sdk
, i even set the environment in the server as process.env.ANDROID_HOME = '~/Library/Android/sdk';
.
I am not sure how to get this to work, any help will be greatly appreciated.