I installed ionic on my Mac and created a project using
$ Ion Launch Tutorial MyIonicProject
Now i run
$ cd MyIonicProject
$ ionic serve
Now it works successfully in the browser. Therefore, I would like to see the same in the Android mobile phone, so I tried using the command below,
ion cordova run android --prod --release
This is a rather brief question, and I cannot fix my OSX error below, these are problems when I run above on my Mac.
> cordova run android --release
ANDROID_HOME=/usr/local/Caskroom/android-sdk/3859397,26.0.2
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
Error: spawn EACCES
[ERROR] An error occurred while running cordova run android --release (exit code 1).
[17:54:52] lint finished in 2.69 s
Please help me find out with someone how to fix this error when starting the IONIC project on Android.
Thank,
Jaccs source
share