

JDK 14 is the first release that complies with the new macOS 10.15 hardening and notarization requirements. See Notarizing Your App Before Distribution. When you install or run software for the first time, Gatekeeper verifies that the software has been notarized. Sudo rm -fr /Library/PreferencePanes/JavaControlPanel.With macOS 10.15, Apple introduced new application security checks, which are used by Gatekeeper to verify the contents of distributed software. Sudo rm -fr /Library/Internet\ Plug-Ins/ugin I would recommend fixing this issue fully by first removing the Java you installed by running the following in your terminal: You then fixed the second error by forcing gradle (build tool) to look in the correct folder for your JDK. When you install Java (JRE) and try build your app, the build now finds Javas JRE which has everything it is needs to run Java but not build it, this is why the new error is Could not find tools.jar… The JDK includes the compiler (javac) and tools (like javadoc and jdb) and is what is needed to build your app. if not reinstall JDK (instructions bellow) i.e Make sure JAVA_HOME environment variable is set to the JDK’s folder. This could potentially be fixed by simply updating your Java path in your terminals profile (.profile. Either a path issue or another issue with the JDK install.

For whatever reason your computer can’t find your installed version of JDK. I had a similar issue with react native but I think installing Java (JRE) is creating a new problem while partly fixing the original.
