FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':firebase_core:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_251 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
After updating I started getting an error like this. Can anyone help?