Questions tagged [flutter-build]
146 questions
2
votes
2 answers
Flutter: Prevent `build` being called when `Refresher` is used
I am using the pull_to_refresh package.
I am having a Stack() with two elements. One of them is the Refresher(). When I pull down on my screen, activating the refreshing animation, the build method is called constantly. The problem is that my second…

progNewbie
- 4,362
- 9
- 48
- 107
2
votes
1 answer
Flutter MapBox Error - Unauthorized 401 error when building app for Android
In my project I use mapbox_gl: ^0.14.0.
When running flutter build aar command it fails with:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':mapbox_gl:generateDebugRFile'.
> Could not resolve all files for…

Lukas Luke Stateczny
- 513
- 8
- 24
2
votes
1 answer
Error using source generator from a source generator package
I am writing a dart source generator that is using json_serializable for some of it models. Initially the source generation was working fine for some time but now when I run dart run build_runner build --delete-conflicting-outputs I am getting…

Soumya Mahunt
- 2,148
- 12
- 30
2
votes
1 answer
Flutter run and ipa - Mac M1 - #import
I can't build anymore my project after cleaning the pod.
I wanted to build ipa for the first time but can't quite manage to make it happen as I have this error for flutter run or flutter build ipa. Thanks for any help.
udpated the trace log with new…

Chris
- 31
- 3
2
votes
1 answer
can we exclude a particular file alone while building apk in flutter
There is 2 product flavour in my project and i do not want some files to be added while building the .apk or app bundle and the below solution is not working .
android {
packagingOptions {
exclude 'lib/widgets/hotel.dart'
…

PRATHIV
- 352
- 2
- 10
2
votes
1 answer
What is the difference between flutter build bundle and appbundle in flutter?
I find little to no information on what's the difference between these two
flutter build bundle
flutter build appbundle
When should I use one over the other?

Joel Broström
- 3,530
- 1
- 34
- 61
2
votes
1 answer
Flutter only grey screen is visible in release apk
I wanted to build release apk for my app and I tried running this command
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
Then, I ran the app-armeabi-v7a-release apk, it was nothing but grey screen only.
I…

Sanjeev Madhav
- 66
- 6
2
votes
0 answers
Flutter passing parameters in the builder
I've been working with flutter_builder for a few days. I think the system is very powerful and I really like it, but I still need to understand some information.
In order to run the builder you need to run the following command: flutter pub run…

macuser
- 567
- 2
- 6
- 16
2
votes
1 answer
Getting build errors with Flutter Notification Plugin
When I am using Flutter Local Notification Plugin (4.0.1), I am getting build errors on both Android and iOS. This is occurring with few other plugins as well - Apple Sign in for iOS and Google Maps APis. However, the builds are successful when…

Saurabh Lakshman
- 21
- 2
2
votes
1 answer
i have an issue with building appbundle with flutter
i'm trying to prepare my app for publishing to play store, bur while i'm creating the app bundle, this error shows up too many times, i was recreate the keystore but it's failed again,
i want to mention that when i setup keystore it's asks me for…

AhdOthman
- 47
- 4
2
votes
1 answer
flutter installing the .apk release app get stuck blank screen
when I run my project in debug and even release mode using flutter run --release everything is fine but when I get the output apk files using flutter build apk --split-per-abi and installing it successfully it only launches a blank grayish screen,…

Mahdi-Jafaree
- 882
- 2
- 9
- 22
1
vote
2 answers
Flutter build fails with 'this and base files have different roots' error
flutter build fails
Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'.
this and base files have different roots: D:\untitled\build\flutter_plugin_android_lifecycle and…

my pc
- 11
- 1
1
vote
0 answers
Could not find a subcommand named "ios" for "flutter build" error
I want to export my app to an ios device.However when I use flutter build ios this error happens.
Could not find a subcommand named "ios" for "flutter build".
Run 'flutter -h' (or 'flutter -h') for available flutter commands and options.
and…

Yusuf Matur
- 11
- 2
1
vote
0 answers
Flutter release APK is different compared to the debug APK when analyzed
In this flutter app i have a java library that uses a json file and a certificate inside the android/app/src/res/raw directory. But when i'am running the app in Release mode it failed to find those json and certificate files. And when i analyze both…

Imesh Jeewantha
- 11
- 2
1
vote
1 answer
Is it more efficient to use a builder widget than a switch case?
Is returning a widget in a switch case just as efficient as encapsulating that code in an other builder widget?
switchcase:
@override
Widget build(BuildContext context) {
switch (predicate()) {
case Trinary.first:
return…

Dan Anderson
- 1,062
- 13
- 26