Android Gradle plugin requires Java 17 to run. You are currently using Java 11. #2336
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceI have a project in which I recently updated my Gradle dependencies as follows (
Content of
Locally, I can build the problem without any issues, using the Java version shipped with Android Studio. In the Codemagic pipeline, it leads to an error saying that Java 11 is being used whereas Java 17 is needed. If I set the Expected resultsNo errors during build Actual results
After setting
Build id (optional)65b2557cca74d6eba4de1b06 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Very weird! Like I said, when setting the environment variable to However, I was confused by the error that stated
Why does it say Java 8? I had a look at the Codemagic docs again and saw the example once again:
It was weird to me that it had This led to a build fail once again:
I thought maybe this Java version is not even installed on the build machines so I tried with Et voilá - it works!
What I find interesting is that when I set it to |
Beta Was this translation helpful? Give feedback.
-
I'm also using the workflow editor and this worked as a charm, thank you both! |
Beta Was this translation helpful? Give feedback.
Very weird!
Like I said, when setting the environment variable to
1.8
, there was still an error.However, I was confused by the error that stated
Why does it say Java 8?
I had a look at the Codemagic docs again and saw the example once again: