Skip to content
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

Execution failed for task ':app:compileFlutterBuildRelease'. #4574

Closed
1 task done
fatihfoot opened this issue Dec 16, 2024 · 1 comment
Closed
1 task done

Execution failed for task ':app:compileFlutterBuildRelease'. #4574

fatihfoot opened this issue Dec 16, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@fatihfoot
Copy link

fatihfoot commented Dec 16, 2024

395726983-83d4d7ea-5afd-4a6a-81a1-ca1eb10f125c

Duplicate Check

Describe the bug

i want to help

Code sample

Code
[../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.1/lib/src/utils/theme.dart:356:28: Error: A value of type 'TabBarThemeData' can't be returned from a function with return type 'TabBarTheme?'.
        - 'TabBarThemeData' is from 'package:flutter/src/material/tab_bar_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
        - 'TabBarTheme' is from 'package:flutter/src/material/tab_bar_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
         return theme.tabBarTheme.copyWith(
                                  ^
       ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.1/lib/src/utils/theme.dart:438:28: Error: A value of type 'DialogThemeData' can't be returned from a function with return type 'DialogTheme?'.
        - 'DialogThemeData' is from 'package:flutter/src/material/dialog_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/dialog_theme.dart').
        - 'DialogTheme' is from 'package:flutter/src/material/dialog_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/dialog_theme.dart').
         return theme.dialogTheme.copyWith(
                                  ^
       ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.1/lib/src/utils/theme.dart:482:26: Error: A value of type 'CardThemeData' can't be returned from a function with return type 'CardTheme?'.
        - 'CardThemeData' is from 'package:flutter/src/material/card_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/card_theme.dart').
        - 'CardTheme' is from 'package:flutter/src/material/card_theme.dart' ('/C:/Program%20Files/flutter/packages/flutter/lib/src/material/card_theme.dart').
         return theme.cardTheme.copyWith(
                                ^
       Target kernel_snapshot_program failed: Exception


       FAILURE: Build failed with an exception.

       * What went wrong:
       Execution failed for task ':app:compileFlutterBuildRelease'.
       > Process 'command 'C:\Program Files\flutter\bin\flutter.bat'' finished with non-zero exit value 1

       * 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 5m 25s
       Gradle task assembleRelease failed with exit code 1

       Error building Flet app - see the log of failed command above.
![395726983-83d4d7ea-5afd-4a6a-81a1-ca1eb10f125c](https://github.com/user-attachments/assets/7a956945-9a3b-4112-b237-aff683a3c29d)
]
![395726983-83d4d7ea-5afd-4a6a-81a1-ca1eb10f125c](https://github.com/user-attachments/assets/0c666510-60dd-4f57-8e5c-2ba250a59d5d)

To reproduce

Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\Program Files\flutter\bin\flutter.bat'' finished with non-zero exit value 1

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

windows 11

Flet version

flet 0.25.2

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

@ndonkoHenri
Copy link
Contributor

Duplicate of #4548

@ndonkoHenri ndonkoHenri marked this as a duplicate of #4548 Dec 18, 2024
@ndonkoHenri ndonkoHenri added the duplicate This issue or pull request already exists label Dec 18, 2024
@flet-dev flet-dev locked as resolved and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants