Skip to content

Can't build Android APK #5719

@mottibz

Description

@mottibz

Hello all,
I have also posted this in the Help section of the Discord server. I hope to get help in one of them.
I tried to build my app for Android (I previously built it with no problem).
The building failed and by looking through the printed log, I have seen 3 possible issues listed below.
I am using Flet 0.28.3, upgraded to the latest Flutter v3.35.6 and using Python 3.11.9.
Will highly appreciate your help in resolving.
Thanks a lot!

Failure 1

[+10796 ms] [+10770 ms] Persisting file store
[ ] [ +4 ms] Done persisting file store
[ ] [ +13 ms] Target kernel_snapshot_program failed: Exception
[ ] #0 KernelSnapshot.build

Failure 2

[ +92 ms] [ +138 ms] exiting with code 1
[ ] > Task :app:compileFlutterBuildRelease FAILED
[ +82 ms] FAILURE: Build failed with an exception.
[ ] * What went wrong:
[ ] Execution failed for task ':app:compileFlutterBuildRelease'.
[ ] > Process 'command 'C:\Users\motti\flutter\3.29.2\bin\flutter.bat'' finished with non-zero exit
value 1
[ ] * Try:
[ ] > Run with --debug option to get more log output.
[ ] > Run with --scan to get full insights.
[ ] > Get more help at https://help.gradle.org.
[ ] * Exception is:
[ ] org.gradle.api.tasks.TaskExecutionException: Execution failed for task
':app:compileFlutterBuildRelease'.

Failure 3

[ ] BUILD FAILED in 1m 43s
[ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[ ] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they
come from your own scripts or plugins.
[ ] For more on this, please refer to
https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle
documentation.
[ ] 9 actionable tasks: 9 executed
[ ] Watched directory hierarchies: [C:\Users\motti\flutter\3.29.2\packages\flutter_tools\gradle]
[ +388 ms] Running Gradle task 'assembleRelease'... (completed in 104.2s)
[ ] "flutter apk" took 106,062ms.
[ +26 ms] Gradle task assembleRelease failed with exit code 1
[ ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions