flutter_medical icon indicating copy to clipboard operation
flutter_medical copied to clipboard

JDK is not valid

Open naseer-ecozlabs opened this issue 3 years ago • 0 comments

I am getting the following message after I connect the firebase... I have installed JDK version 14.0.1 but it still looking for a jdk inside the jre directory.

Launching lib\main.dart on ONEPLUS A5000 in debug mode... Running Gradle task 'assembleDebug'...

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_271 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 16s Exception: Gradle task assembleDebug failed with exit code 1

naseer-ecozlabs avatar Dec 02 '20 11:12 naseer-ecozlabs