I've got a Cordova v10.0.0 project using Cordova Android v9.0.0, I'm experiencing a problem when trying to build the project for Android, I'm getting the following error:
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/Users/MYUSER/Library/Android/sdk (DEPRECATED)
Failed to instantiate ProjectBuilder builder: Error: Cannot find module 'compare-func'
I've tried removing my Node Modules folder, running a cordova clean android
and re-installing with npm install
. Not quite sure why I'm getting this error.
I faced the same issue and I installed compare-func npm package (Link) (npm i compare-func
) and it worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With