Hi @nicraboy. I followed this tutorial for android release.apk and everything worked fine until the --release command. An error came up and suggested that I might not have the required environment or os to build this project. Is this because I did this on a mac?
Here is the error that came up:
Running command: "/Users/LiyangFeng/Desktop/local notification/hooks/after_prepare/010_add_platform_class.js" "/Users/LiyangFeng/Desktop/local notification"
add to body class: platform-android
Running command: "/Users/LiyangFeng/Desktop/local notification/platforms/android/cordova/build" --release
[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
ERROR building one of the platforms: Error: /Users/LiyangFeng/Desktop/local notification/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/LiyangFeng/Desktop/local notification/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess.handle.onexit (childprocess.js:1087:5)