I got the following error while runing my flutter app without debugging in android emulator in vs code:- ''' Launching lib\main.dart on Android SDK built for x86 64 in debug mode... main.dart:1 ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation. Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm) '''
I have been experiencing this issue since some time. My flutter application does not run on the android emulator.