Local Run Error When Running a Physical Device

Project Settings

Hello Flutterflow community is there anyone know how to fix these issue?

This is the logs

Launching lib\main.dart on CPH1909 in debug mode...

Upgrading build.gradle

Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':gradle:compileGroovy'.

> BUG! exception in phase 'semantic analysis' in source unit 'C:\Users\Walram2023\AppData\Roaming\FlutterFlow\flutterflow\flutter\packages\flutter_tools\gradle\src\main\groovy\app_plugin_loader.groovy' Unsupported class file major version 65

* 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

BUILD FAILED in 35s

Running Gradle task 'assembleDebug'... 36.4s

โ”Œโ”€ Flutter Fix โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”

โ”‚ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using โ”‚

โ”‚ for Gradle. โ”‚

โ”‚ โ”‚

โ”‚ If you recently upgraded Android Studio, consult the migration guide at โ”‚

โ”‚ https://flutter.dev/to/to/java-gradle-incompatibility. โ”‚

โ”‚ โ”‚

โ”‚ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter โ”‚

โ”‚ doctor --verbose`. โ”‚

โ”‚ โ”‚

โ”‚ Then, update the Gradle version specified in โ”‚

โ”‚ C:\Users\Walram2023\AppData\Roaming\FlutterFlow\flutterflow\mobile_waste_app\android\gradle\wrap โ”‚

โ”‚ per\gradle-wrapper.properties to be compatible with that Java version. See the link below for โ”‚

โ”‚ more information on compatible Java/Gradle versions: โ”‚

โ”‚ https://docs.gradle.org/current/userguide/compatibility.html#java โ”‚

โ”‚ โ”‚

โ”‚ โ”‚

โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Error: Gradle task assembleDebug failed with exit code 1

What have you tried so far?

flutter upgrade

Did you check FlutterFlow's Documentation for this topic?
Yes
4
7 replies