On several different projects, I am unable to get a successful build. This is after updating to MacOS Big Sur, this is the only change I have made. Here is the log:
Using java version “15.0.1” 2020-10-20
Java™ SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot™ 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)
Dec 01 16:44:52.345 BUILD SUCCESSFUL
Total time: 1 second
Dec 01 16:45:06.108 Excluding specified files from build:
excluding: .ignore/*
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':App:compileReleaseJavaWithJavac'.
> Could not find tools.jar. Please check that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home contains a valid JDK installation.
* Try:
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
BUILD FAILED in 13s
Dec 01 16:45:06.220 Android build failed (256) after 16 seconds
I don’t know where I am supposed to find ‘tools.jar’, I have checked the path in the log, and found nothing there. I have made sure I have installed JDK