Not able to Build Android #2985
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceJust Build The application and it will fail at Building android. Expected resultsBuild should be successful as it's working on my local device. Actual resultsIt's failing to build the android aab. And I am using /Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home for Java version and tried upgrading to 23.jdk but gave me incompatible version for gradle but works on my Mac with java 23 version. Build id (optional)67b33083d4aee38568ad8e09 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello @VikasAgrawal-04,
Based on discussions online, this issue is likely due to Java 21 not being supported. Some users have resolved it by either downgrading to JDK 11 or upgrading their Gradle version. Here’s a relevant StackOverflow thread: Additionally, a similar issue was reported for React Native Android, which may apply to your Flutter app as well: Please can you try adjusting your JDK or Gradle version to resolve the issue? |
Beta Was this translation helpful? Give feedback.
Hey @VikasAgrawal-04,
I just checked through your team builds and can see your recent build creates android but the publishing step failed with below message:
You can either add
--build-number=UPDATED_VERSION_CODE
use an updated version code not in the stores currently in yourpubspec.yaml
file. You can also retrieve the latest version code in the stores and increment it as described here - https://docs.codemagic.io/knowledge-codemagic/build-versioning/.