Bitrise Build Issue Report template
Description of the issue
My Android build workflow is failing due to the following reason:
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task â:app:transformClassesWithMultidexlistForStagingReleaseâ.
> com.android.build.api.transform.TransformException: Error while generating the main dex list.
Failed to build Android platform, error: exit status 1
It compiles locally through âflutter build apk --release --flavor stagingâ and through the Bitrise CLI using the same workflow.
I followed the instruction to delete my $HOME/.gradle directory and it produced the same results.
Environment:
Where did the issue happen?
Bitrise.io: Default stack - Hybrid Visual Studio for Mac, installed on macOS 10.13 (High Sierra), set to the Stable channel.
Which build Step causes the issue and which version of the step?
The build fails on: flutter-build@0.9.2
Reproducibility
- Does a âRebuildâ help? (You can trigger a rebuild from the Buildâs page, by clicking the âRebuildâ button in the top right corner of a finished build) : NO
- Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. : NO - Does the issue happen sporadically, or every time? : Every time
- Does upgrading the build Step to the latest version help? : NO
- When did the issue start? : When setting âminifyEnabled falseâ in the Android build.gradle the issue occurs. If I set it to true the workflow completes, but then my app crashes with this build, and I can only run it when it is false.
Local reproduction
Can it be reproduced on your own Mac/PC by following our local debug guide? Please follow at least the first section (âTesting with a full clean git cloneâ) to make sure to test the state of the code what bitrise.io will get when it does a git clone in the clean environment! If possible please note which sections you tried.
Have performed the local test through the Bitrise CLI as described above.
Local reproduction: Linux / Android (docker based) stack builds
Can it be reproduced by running the build locally, after doing a new git clone of the repository into the /tmp
directory and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )? If no, can it be reproduced with Docker (using the same docker images / environment we use on bitrise.io)? Related guide: Running your build locally in Docker - Bitrise Docs .
Reproduced locally - no.
Have not used Docker.
Build log
Please copy paste the buildâs bitrise.io URL here (or if the issue happens somewhere else then the full logs), or if you canât share the url / log here then send the url or full log through a private channel (e.g. email - Contact us ), with a link to the related Discuss issue.