Hi I am getting the below error while I am running cordova emulate on my imac macOS Bigsur V11, I installed HomeBrew, Git,node and Cordova, I dont know where I am going wrong
riaznadeemali@Riazs-iMac HelloWorld % cordova emulate
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
Using Android SDK: /Users/riaznadeemali/Library/Android/sdk
Subproject Path: CordovaLib
Subproject Path: app
> Task :CordovaLib:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:CordovaLib:compileDebugJavaWithJavac’.
Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.
- Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
BUILD FAILED in 696ms
19 actionable tasks: 1 executed, 18 up-to-date
Command failed with exit code 1: /Applications/MAMP/htdocs/APP/HelloWorld/platforms/android/gradlew cdvBuildDebug -b /Applications/MAMP/htdocs/APP/HelloWorld/platforms/android/build.gradle
riaznadeemali@Riazs-iMac HelloWorld %