Md Eusuf Uddin
Md Eusuf Uddin

Reputation: 156

How can I solve Flutter Problem in release mode run?

When Run my flutter app with Released mode. App Run on my emulator but give me error after running application. But Why give this error i don't understand now. Please help me to identify the issue like what happening

enter image description here

I am using Java JDK : 17 also select Android Studio project structure to JDK path from my local computer path. I also adding screenshot of the error. Please help me to find out the exact problem.

Upvotes: 0

Views: 278

Answers (1)

harsh bangari
harsh bangari

Reputation: 495

java.lang.UnsupportedClassVersionError

Looks like there is an incompatibility issue between your Java code and the Java Runtime Environment (JRE).

Use Android Studio to configure your Flutter project to use an older Java version.

Open project in Android Studio.

  • Go to File > Project Structure.
  • In the left pane, select SDK Location. Uncheck the box for "Use embedded JDK (recommended)".
  • In the JDK Location field, enter the absolute path to the older Java installation directory (e.g., /usr/lib/jvm/java-11-openjdk).

Upvotes: 1

Related Questions