Questions tagged [flutter-build]
146 questions
1
vote
0 answers
Flutter: D/ConnectivityManager(32004): requestNetwork; CallingUid : 10294, CallingPid : 32004
I am new to flutter development. I have been editing a code bought from CodeCanyon. This application gets data from Woocommerce REST API. The application built is not showing any product in the output. Instead I have a huge log that shows the issue…

Haris Siddiqui
- 11
- 1
1
vote
3 answers
My stateful widget does not update it's state when setState is called
Background
Inside the state object of my stateful widget, I have the following code.
class _PendingJobsState extends State {
List pendingJobs = []; <------------------- I am trying to change the state of this variable.
…

gfit21x
- 141
- 9
1
vote
0 answers
Flutter test - Force rebuild of a widget
I'm trying to write tests to my flutter widgets.
Let's say I have this stateful widget:
class A extends StatefulWidget {
const A();
@override
AState createState() => AState();
}
class AState extends State {
bool value = false;
…

Valentin Vignal
- 6,151
- 2
- 33
- 73
1
vote
1 answer
how to exclude a file while building a apk in flutter
While building apk for my flutter app I need to avoid from files in building . I have tried by below code in build.yaml but it does not work
targets:
$default:
sources:
exclude:
- lib/widgets/hotel.dart
- lib/widgets/hotel_list_view.dart
…

PRATHIV
- 352
- 2
- 10
1
vote
1 answer
Flutter throws an error when running build or run
I keep getting this when I try to run or run a flutter project
/Users/user1/Projects/projectx/ios/Pods/FBSDKCoreKit_Basics/Sources/FBSDK
CoreKit_Basics/FBSDKUserDataStore.m:19:9: fatal error:
'FBSDKUserDataStore.h' file not found
#import…

Henry
- 45
- 1
- 10
1
vote
1 answer
how to release flutter app to google play?
I want to release an flutter app for Google play store and I checked every step of in Instruction page of flutter, but every time I got this error:
* What went wrong:Execution failed for task ':app:validateSigningRelease'.> Keystore file not set for…

Saeed Ghasemi
- 141
- 1
- 10
1
vote
1 answer
problem with running every flutter app from github( Because xml >=4.4.0 <4.4.1 depends on petitparser ^3.1.0 and xml )
i am new to flutter, i have already made some small projects on my system but when I clone projects from github i cant build and run these projects, and I always get errors similar to this:
Because xml >=4.4.0 <4.4.1 depends on petitparser ^3.1.0…

yasin moosavi
- 416
- 4
- 8
1
vote
1 answer
Gradle wrapper not found issue when building a flutter apk
I am getting below error when I am trying to build apk or run it on a simulator.
I tried with vs Code and Android Studio both, but the same error.
But when I am running the app on a browser or as a windows app, it's working perfectly.
Error: -
PS…

Siddhartha Das
- 21
- 4
1
vote
0 answers
Why flutter debug works but not release?
My app builds successfully in debug mode and runs fine but when using flutter run --release it gives some issues.
* What went wrong:
Task 'assembleAarRelease' not found in root project 'flutter_plugin_android_lifecycle'.
* Try:
Run gradlew tasks…

Amit Parajuli
- 23
- 5
1
vote
2 answers
Flutter unable to build IOS archive
i am trying to build a IOS IPA for generic device, followed all the instructions, added signing certificates, team etc. but i am unable to build the product. any one please help me to resolve this issue.
here is my signing config. checked to…

Saif Ur Rehman Saif
- 81
- 9
1
vote
0 answers
The method 'FormBuilderDateTimePicker' isn't defined for the type '_CreateEventState'
I am trying to use FormBuilder for my project for adding an event to a calendar, I used ForBuilderTextfield() and FormBuilderSwitch(), however when I try to define FormBuilderDateTimePicker for entering a date I get the following error:
The method…

fmha
- 11
- 3
1
vote
0 answers
flutter build apk not running
I have tried everything from flutter clean to clearing package cache.
flutter run --release works fine but when I do flutter build apk --release, it doesn't move further than white screen. flutter build apk --debug works as well. I don't know why it…

bhupendra patel
- 71
- 1
- 2
0
votes
0 answers
Flutter ios-framework build failed issue
I have an old app which writen with flutter 1.22.6 (i know its really old) and i have to embed my app to another native app with FlutterView (i know it doesn't make sense to embed an entire app to another but customers are always right :)).…

Kimse
- 41
- 1
- 6
0
votes
1 answer
List without arguments causing error even called before the event
I am trying to feed one DropdownButton with a list of strings.
So my code start with :
List list0 = [];
class mainPage extends StatefulWidget {
const mainPage({super.key});
@override
State createState() =>…

guguCara
- 21
- 5
0
votes
1 answer
Flutter app not build on IOS due to Cocoapods is not installed
System: Apple Macbook pro 14 Inch
Processor: M1 chip
IDE- Android Studio Giraffe,
Issue -
Warning: CocoaPods not installed. Skipping pod install.CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin…

Harshal Chaudhari
- 41
- 3