-
Notifications
You must be signed in to change notification settings - Fork 124
Flutter build apk failed #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
this is the code from my file where i'm using flutter_foreground_task ######### ` bool? icon = false; class HomePageWidget extends StatefulWidget { // The callback function should always be a top-level function. FlutterForegroundTask.initDispatcher((timestamp) async {
}, onDestroy: (timestamp) async { void callback2() {
}, onDestroy: (timestamp) async { class _HomePageWidgetState extends State { bool button = false; void _initForegroundTask() { void _startForegroundTask() { void _stopForegroundTask() { Future _toggleListening() async {
} void _bikeRiveFile() async {
} @OverRide Future _determinePosition() async {
} @OverRide void setDatatoSP() async { void removeDatatoSP() async { AlertDialog alert(context) => AlertDialog( |
When I checked the error, it seems that the flutter_launcher_icons plugin to create the correct And before building the APK file, please refer to the guide provided by Flutter. When all settings are complete, run the |
`Building with sound null safety
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
Execution failed for task ':app:mergeReleaseResources'.
with PNG signature.
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.
BUILD FAILED in 13m 59s
Running Gradle task 'assembleRelease'... 849.4s
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
✏️ Creating
android\settings_aar.gradle
... 158ms√
android\settings_aar.gradle
created successfully.Building plugin flutter_foreground_task...
Running Gradle task 'assembleAarRelease'... 59.6s
FAILURE: Build failed with an exception.
Could not determine the dependencies of task ':compileReleaseAidl'.
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 56s
The plugin flutter_foreground_task could not be built due to the issue above.`
###########################################################################
please can you solve this issue
The text was updated successfully, but these errors were encountered: