I didn't change anything in my Flutter application and it was running perfectly but when i tried running on real device i got this exception FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':bluetoothadapter:compileDebugJavaWithJavac'. > Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_321 contains a valid JDK installation. BUILD FAILED in 13s Exception: Gradle task assembleDebug failed with exit code 1