Top ad position

Exception: Gradle task assembleDebug failed with exit code 1

Started 2 years ago by M R Alam in Framework, Flutter

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

1 Replies

  • Replied 2 years ago

    Report

    Solution: Go to your android studio installation folder. Generally its in C:\Program Files\Android\Android Studio Now copy all files and folders from jbr folder and paste it in jre folder.

    Now run again, your problem will be solved.

Bottom ad position