Exception: Gradle task assembleDebug failed with exit code 1
The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe
Body
Launching lib\main.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. What went wrong: The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:\Program Files\Android\Android Studio\jre\bin\java.exe 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 Exception: Gradle task assembleDebug failed with exit code 1
Tags: flutter, android-studio, build-failed, java-path-error
1 Replies
Bottom ad position