-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceHi. I am trying to use Java 21.0.5 to build an Android app. As suggested in #2132, I used the Workflow Visual Editor to set Expected resultsThe version of Java in the environment is correctly set to 21.0, but it seems that Flutter is still using Java 11, which is the version on Android Studio. Actual resultsResults of
Results of
Is this mismatch normal? Which version of Java is being used to build the Android app? Thank you! I greatly appreciate your help. Build id (optional)67df504517ce867b00ca17f5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I solved it by adding this script right at the start of the workflow:
This makes the Android toolchain use the version of Java on the path (JAVA_HOME) instead of the version from Android Studio. |
Beta Was this translation helpful? Give feedback.
I solved it by adding this script right at the start of the workflow:
This makes the Android toolchain use the version of Java on the path (JAVA_HOME) instead of the version from Android Studio.