-
Use case
Idea
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi, you should be able to change java version like this inside codemagic.yaml file |
Beta Was this translation helpful? Give feedback.
-
Thank you, @mtcn, for pitching in. |
Beta Was this translation helpful? Give feedback.
-
@himesh-cm what about Java 18...I'm facing an issue when trying to build my Flutter app where I use nordic_dfu and when I try to build the app for Android...Code magic will throw the error below:
When I build the app locally on my machine, I don't have this issue but I'm using Java 18 |
Beta Was this translation helpful? Give feedback.
sorry, I misunderstood your use case. I haven't used Codemagic with the workflow editor but have you tried to add the Java version to the environment variables section?
JAVA_HOME = /usr/lib/jvm/java-1.17.0-openjdk-amd64 (path is mentioned in here )
or
java = 17