chinmay@chinmay-Latitude-E6420:~/MyFiles/FlutterExercise/again$ flutter build apk
Building without sound null safety For more information see https://dart.dev/null-safety/unsound-null-safety
ERROR: JAVA_HOME is set to an invalid directory: "/usr/lib/jvm/jdk-15-0.2"
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 138ms
Gradle task assembleRelease failed with exit code 1
chinmay@chinmay-Latitude-E6420:~/MyFiles/FlutterExercise/again$