Questions tagged [flutter-build]
146 questions
1
vote
0 answers
flutter app works on emulator but not in real device
My app works on emulator but if I build it with (flutter build apk) or (flutter build apk --split-per-abi --no-sound-null-safety) and setup it on my phone it doesnt responde. It is stucking in a white screen. I didn't get where is the problem.
Where…

Hüseyin Sezen
- 56
- 9
1
vote
1 answer
flutter web build with tree shake icons
when I build flutter to web platform with command --tree-shake-icons I get this error.
This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following…

ZeroJsus
- 11
- 4
1
vote
1 answer
Flutter web build throws an error when main.dart file isn't in the lib root directory
I'm trying to build in production mode my flutter app for web, but I have my "main.dart" file not in the root lib directory, this cause to not be able to build my app for web, I have tried to point the path to where the "main.dart" file is,…

g14wx
- 316
- 1
- 2
- 7
1
vote
0 answers
MaterialApp rebuild when Home widget calls build function
My app's MyApp widget, which returns MaterialApp (as done in virtually every Flutter app) is rebuild whenever the build function on the home widget is called. I need to know why this happens, as it greatly reduces the performance of my app.
I use a…

Wessel
- 617
- 4
- 13
1
vote
1 answer
Flutter `CMake Generate step failed. Build files cannot be regenerated correctly.`
When I run flutter run -d windows I am getting below error. ```
PS C:\Users\meera\salesman> flutter run -d windows
Launching lib\main.dart on Windows in debug mode...
CMake Error:
Error evaluating generator…

Harshit
- 95
- 2
- 8
1
vote
0 answers
How to remove build side effects in this context, using Staggered Grid View Builder Flutter?
I am trying to create the build method without side effects (without blinking). I solved this problem using StatefulBuilder, but I read that I should rebuild 1000x times without any change or effect.
The Staggered Grid View Builder Widget are…

Roland Iordache
- 325
- 4
- 20
1
vote
2 answers
Flutter Android Build Stuck after Upgrading to Android V2
I am experiencing this issue when I am trying to run my app on an Android Emulator(API 31, Android 12) after upgrading to Android V2:
Normal Run gets Stuck here:
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing…

Moez Elahi
- 21
- 4
1
vote
2 answers
Execution failed for task ':app:processDebugResources
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android…

ABDO AHMED
- 11
- 1
- 2
1
vote
2 answers
flutter build web command arguments
I want to change the version number when building my Flutter project to web platform.
flutter build web --build-name=2.0.0 --build-number=2
I tried the above command but
Could not find an option named "build-name".
I got the error.
Do you have any…

MuharremCetin
- 51
- 1
- 5
1
vote
1 answer
Whenever I run - Flutter build apk it gives me an error saying "Could not determine the dependencies of task ':app:lintVitalRelease'."
It works completely fine while testing in debugging mode. But when i try to build the apk of this project I get this error.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task…

Elonify
- 61
- 1
- 3
1
vote
2 answers
How to pass data down the widget tree?
I have read and understood a similar question posted here, but am having trouble applying it to my use case. I am new to Flutter and am creating an app that streams audio from a given URL using Ryan Heise's audio_service plugin. Using this plugin I…

John Harrington
- 1,314
- 12
- 36
1
vote
0 answers
How to inherit config from default build.yaml file for custom configuration
Dart build.yaml docs proposes this approach to build with custom configurations:
If you need other configurations in addition to dev and release, you can define multiple build.yaml files. For instance if you have a build.debug.yaml file you can…

Soumya Mahunt
- 2,148
- 12
- 30
1
vote
1 answer
flutter Can't get APK
I want to get .apk from my project, but I've got an error from my grade.
I've removed my .gradle file and installed it again, but I still can't get .apk.
I've got this :
android\app\src\main\AndroidManifest.xml:25: Error: AudioService must…

siitaw
- 11
- 1
1
vote
0 answers
Can not get data from a network request in a method that uses Scaffold.of(context)
I have two class methods inside my Stateful widget. As you can see one method is called inside the other one.
1st class method
Future _getExchangeHousesList() async {
const url = ApiEndpoints.getExchangeHouses;
Map…

CodeR_Ax20
- 91
- 1
- 8
1
vote
1 answer
Getting error while building apk in release mode in Flutter
What went wrong:
Execution failed for task ':app:processReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking…

Usama Jutt
- 11
- 1