Skip to content

fix: Build failed on android using flutter v3.35.4 #3332

@sabin26

Description

@sabin26

App ID: 1cbb4b46-421a-4623-8ad7-158898dca475

Description

Build suceeds on v3.35.3 but fails on v3.35.4

Steps To Reproduce

  1. Select flutter version 3.35.3 in the codemagic workflow editor. Build the app and watch it succeededs
  2. Select flutter version 3.35.4 and watch the build fail with error.

Expected Behavior

Build SUCCEEDED

Additional Context

Running Gradle task 'bundleRelease'...                          
Checking the license for package NDK (Side by side) 27.0.12077973 in /usr/local/share/android-sdk/licenses
License for package NDK (Side by side) 27.0.12077973 accepted.
Preparing "Install NDK (Side by side) 27.0.12077973 v.27.0.12077973".
"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" ready.
Installing NDK (Side by side) 27.0.12077973 in /usr/local/share/android-sdk/ndk/27.0.12077973
"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" complete.
"Install NDK (Side by side) 27.0.12077973 v.27.0.12077973" finished.
Checking the license for package Android SDK Build-Tools 35 in /usr/local/share/android-sdk/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
"Install Android SDK Build-Tools 35 v.35.0.0" ready.
Installing Android SDK Build-Tools 35 in /usr/local/share/android-sdk/build-tools/35.0.0
"Install Android SDK Build-Tools 35 v.35.0.0" complete.
"Install Android SDK Build-Tools 35 v.35.0.0" finished.
[=========                              ] 25%                                   
[=========                              ] 25%                                   
[=========                              ] 25%                                   
[=========                              ] 25%                                   
Expected to find fonts for (MaterialIcons, packages/cupertino_icons/CupertinoIcons), but found (MaterialIcons). This usually means you are referring to font families in an IconData class but not including them in the assets section of your pubspec.yaml, are missing the package that would include them, or are missing "uses-material-design: true".
Font asset "MaterialIcons-Regular.otf" was tree-shaken, reducing it from 1645184 to 15076 bytes (99.1% reduction). Tree-shaking can be disabled by providing the --no-tree-shake-icons flag when building your app.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkReleaseDuplicateClasses'.
> Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
   > Failed to transform x86_64_release-1.0.0-3a7ed3dba51b46cea8d487b6c9aaa87d720551ac.jar (io.flutter:x86_64_release:1.0.0-3a7ed3dba51b46cea8d487b6c9aaa87d720551ac) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for JetifyTransform: /Users/builder/.gradle/caches/modules-2/files-2.1/io.flutter/x86_64_release/1.0.0-3a7ed3dba51b46cea8d487b6c9aaa87d720551ac/4f52211061c32cec76e42033b97c67843c7d8a7b/x86_64_release-1.0.0-3a7ed3dba51b46cea8d487b6c9aaa87d720551ac.jar.
         > Java heap space

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 6m 38s
Running Gradle task 'bundleRelease'...                            399.7s
Gradle task bundleRelease failed with exit code 1
Failed to build AAB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions