171 questions
1
vote
1
answer
71
views
How to analyze Flutter iOS app size and see which plugins/assets take the most space?
I want to analyze my Flutter app size for iOS and find out:
Which pub.dev plugins are taking how much space.
How much space my assets contribute.
The size from my own Dart code (lib/) and native ios/ ...
1
vote
3
answers
94
views
BuildContext in async method in flutter get warning: "Don't use 'BuildContext's across async gaps"
I have an API call inside my flutter application. After that API returned, I need to navigate to other screen, but a warning is shown:
Don't use 'BuildContext's across async gaps. Try rewriting the ...
4
votes
1
answer
1k
views
FlutterPlugin.kt and FlutterPluginUtils.kt error while running project in Flutter 3.32.0
Hi I started getting error after I upgraded my Flutter version in MacOS Sequioa (15.5 (24F74)
Running Gradle task 'assembleDebug'...
e: file:///Users/.../development/flutter/packages/flutter_tools/...
1
vote
1
answer
833
views
Flutter APK Build Fails: AAPT2 Error - "RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data" for android-35
I am trying to build a Flutter APK using the command:
flutter build apk
But I am getting this error:
* What went wrong:
Execution failed for task ':flutter_plugin_android_lifecycle:...
0
votes
1
answer
107
views
Null Check used on Null value
trying to generate api client file using retrofit but getting error on one specific file which says null check operator used on null value and the error log using --verbose for build_runner is
Null ...
1
vote
0
answers
169
views
Unresolved reference: io, Unresolved reference: FlutterActivity
Unresolved reference: io and Unresolved reference: FlutterActivity error when try to flutter build apk.
Tried solution : I open the android folder on Android Studio and some dependency downloaded ...
0
votes
1
answer
1k
views
Flutter problem when building the app from app_links
Support for Android x86 targets will be removed in the next stable release after 3.27. See
https://github.com/flutter/flutter/issues/157543 for details.
You are applying Flutter's app_plugin_loader ...
0
votes
1
answer
35
views
flutter build failed with exception
This is the error:
Execution failed for task ':app:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
> ...
1
vote
0
answers
23
views
Why are two new lines in the `GeneratedPluginRegistrant.java` change back and forth all the time?
I have one Flutter project where pretty frequently between build the GeneratedPluginRegistrant.java has two new line changes in the import section. I commit the change and pretty soon it is changing ...
0
votes
1
answer
143
views
Flutter signing Android App Bundle (aab) with incorrect key different from the one configured in key.properties file
I'm trying to upload an app bundle to the Play Console and I'm always getting a message saying that the key used is different from the correct one.
The message:
Your Android App Bundle was signed ...
1
vote
0
answers
20
views
Analyzer exclude also suppresses errors
In my analysis_options.yaml I wrote an exclude for generated files
analyzer:
exclude:
- lib/**.g.dart
I noticed that it also suppresses errors though, not just linting warnings. This is a ...
4
votes
0
answers
3k
views
Flutter Build Failed: Execution Failed for Task ':path_provider_android:compileDebugJavaWithJavac' Due to JdkImageTransform Error
I'm encountering a build error while trying to run my Flutter project using Android Studio Hedgehog on Windows 11. The error specifically occurs during the :path_provider_android:...
-1
votes
1
answer
148
views
I am facing an issue from making build of an app in flutter
Try to build an flutter app
i am trying to build an app i am trying flutter build appbundle command and i am facing this issue
error :
Warning: SDK processing. This version only understands SDK XML ...
0
votes
1
answer
713
views
AGP Upgrade Assistant
What went wrong:
A problem occurred configuring project ':connectivity'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. ...
1
vote
1
answer
281
views
Error resolving 'Properties' in Flutter, this seems to not let me build the apk for the app
I am running into this issue while trying to build apk in flutter.
Terminal output when running flutter build apk:
Also getting this error, I have found other solutions to this but they seem to be ...
0
votes
2
answers
318
views
Error when I'm trying to build an android app using flutter
The error is the following:
e: /Users/Houssame/.gradle/aches/transforms-3/e5c5aa35234c44d5264fd87af440dbf9/transformed/fragment-1.7.1-api.jar!/META-INF/fragment_release.kotlin_module: Module was ...
1
vote
1
answer
88
views
Why does generate_for option not work with aggregate builder
When using an aggregate builder, I notice that the generate_for option on the TargetBuilderConfig in the build.yaml changes behaviour. The builder will only output if the target builder is set to ...
1
vote
1
answer
93
views
Force a widget to rebuild from anywhere?
I cant really find a simple way to just rebuild a widget from outside it.
I guess this might be "by design", that you're not supposed to do it this way. But desperate times (deadlines) calls ...
0
votes
1
answer
358
views
How to Skip Unsupported Libraries When Building Flutter Web App with Wasm?
I'm developing a Flutter project targeting both mobile and web platforms. I want to build most of the app using WebAssembly (Wasm) for performance. However, the google_maps_flutter package doesn't ...
0
votes
1
answer
109
views
showDialog rebuild after navigating
I am trying to show a loading after making a request and immediately after trying to navigate to another page. For this I am using a ShowDialog and a FutureProgressDialog. The problem is that when the ...
0
votes
1
answer
493
views
after updating to `Flutter Channel stable, 3.22.0` `flutter build` works but the build using the Xcode project doesn't work anymore
after updating to Flutter Channel stable, 3.22.0 flutter build works but the build using the Xcode project doesn't work anymore.
the error is:
/Users/fractale/CommercialProjects/fcp_library_cleaner/...
0
votes
2
answers
210
views
Do not use BuildContexts across async gaps, or guard the use with a 'mounted'check
I'm new to Flutter and I'm trying to understand the fallowing error:
"Don't use 'BuildContext's across async gaps.
Try rewriting the code to not use the 'BuildContext', or guard the use with a '...
0
votes
0
answers
62
views
iOS Folder recreate in Flutter Project
Before I was using Windows, but now I've switched to MacOS. When I run the project, it's giving me the error:
Error output from CocoaPods:
↳
Cloning into
'/var/folders/z3/...
1
vote
0
answers
513
views
Flutter: Unable to install Runner.app on iPhone Simulator - Error 149
I encountered an error while trying to run my Flutter application on the iPhone Simulator. Here's the error message:
Unable to install /Users/enkh-amgalan/Desktop/lesson/mobile/week-1/add_sub_app/...
0
votes
2
answers
155
views
Error in running the the 'flutter build apk' command
I am developing an app using the dart language, flutter framework and firebase as database, and using the vscode as the code editor. I was running the application in the chrome(debug) and it was ...
0
votes
0
answers
61
views
can someone tell me how do i fix the issue I'm facing in my flutter project
This is the problem I'm facing while building or running on android.
It should run and build the app but I'm getting errors. The same problem is occurring with new projects.
My Gradle version is 7.5
...
4
votes
1
answer
3k
views
I cannot build a apk of my flutter project it tells me to upgrade my Kotlin version when I upgrade it I get more errors and when I solve them more com
I tried to make the apk of my flutter project but I couldn’t due to these errors which tells me to degrade to 1.5.1 but the suggestion of the flutter tells me to upgrade from 1.9.0 . I have tried both ...
1
vote
0
answers
426
views
String Interpolated base url and end point not working on Flutter Web app
I have implemented a flutter web app and created develop and release environments. I am accessing the API Url like "${ConfigEnv.baseUrl}${MyEndPointFile.jokesEndPoint}", .
The Config File ...
0
votes
1
answer
196
views
after building release file is not opening
I have created build for windows using flutter,
initially showing error #flutter_window.ddl,#printing_ddl, now after resolving this
build is created in installer folder(I have created new one) when I ...
0
votes
1
answer
88
views
Flutter widget: AspectRatio final double aspectRatio;paint Variables must be declared using the keywords 'const', 'final', 'var' or a type name
I got a weird error when trying to run the project (It's work perfectly the previous day!). And the problem is cause by declaring the variable in AspectRatio as image below. Currently, I use flutter ...
0
votes
1
answer
152
views
Flutter UDP-Function in release mode apk doesnt work, but works in debug mode
The App i created works fine on emulator or when debugging it via usb cabel in debug mode.
To share the apk with my friends i run flutter build apk
i upload the apk in build/app/outputs/apk/release/...
0
votes
1
answer
416
views
Failled to run the app in the iOS emulator
issue :
\[!\] CocoaPods could not find compatible versions for pod "libphonenumber_plugin":
In Podfile:
libphonenumber_plugin (from \`.symlinks/plugins/libphonenumber_plugin/ios\`)
...
0
votes
2
answers
2k
views
My Flutter Windows Application (.exe) runs only in background
I have created a flutter project (windows platform). I build the application than use inno setup to create a setup file but when I run the application after installation it runs in background not in ...
1
vote
2
answers
324
views
Flutter Not Calling Build in a Widget After setState() Despite a Change in State
I have called setState() to update the objects of the class MyErrorBox, but Flutter does not run the build function for those objects. I am new to Flutter and coding in general. The MyText class in ...
0
votes
0
answers
65
views
Getting error while trying to integrate cloud firestore with flutter windows platforms
Recently cloud firestore has extended its support for windows, now Iam trying to integrate cloud firestore package with my flutter windows platform project. in debug mode Iam not getting any error. ...
1
vote
0
answers
195
views
printing package in flutter does not work in flutter build web mode
im working on a project that require in a certain moment to generate and print a document. I've done this using pdf and printing packages. It all works fine if im in the debug mode, but not in the ...
1
vote
0
answers
102
views
Gray section after flutter build web application
Im trying to host my flutter web application in github, and it works but there is a section in the app that in the builded version appear gray.
The original section is a DataTable widget and in the ...
0
votes
1
answer
107
views
Flutter FutureBuilder camera has been intialized already
I'm new to Flutter and I want to make a simple camera screen using FutureBuilder. This is my code
import 'dart:developer';
import 'package:camera/camera.dart';
import 'package:flutter/material.dart';
...
0
votes
1
answer
1k
views
Why build_runner watch command is not working?
I have this flutter project I've been working on and I need code generation for various reasons, such as riverpod providers and freezed models. So I'm using build_runner package to generate this .g....
0
votes
1
answer
43
views
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<String> list0 = [];
class mainPage extends StatefulWidget {
const mainPage({super.key});
@...
0
votes
1
answer
730
views
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 ...
0
votes
1
answer
2k
views
flutter build web creates a nested assets folder so images are not loaded
from pubspec.yaml:
flutter:
assets:
- assets/images/
fonts:
- family: NunitoSans
fonts:
- asset: assets/fonts/NunitoSans-Regular.ttf
- asset: assets/fonts/NunitoSans-...
0
votes
1
answer
1k
views
Exception: [!] Your app is using an unsupported Gradle project. (Flutter v1 project)
ERROR:
Exception: [!] Your app is using an unsupported Gradle project. To fix this problem, create a new project by running `flutter create -t app <app-directory>` and then move the dart code, ...
0
votes
1
answer
141
views
Unable to generate ipa using Appollo
I am trying to build a flutter webview app in ios version. I used appollo for generating the ipa file, but it turns out it cannot build the ipa file and display errors.
I run command "appollo ...
0
votes
1
answer
517
views
Azure pipeline fails with Flutter Build windows
I have a azure-pipeline.yml file as below.
variables:
buildNumber: $[replace(variables['Build.BuildNumber'], '.', '')] # runtime expression
stages:
- stage: Flutter_Build_Windows_Test
dependsOn: []
...
2
votes
2
answers
5k
views
Flutter build fails with 'this and base files have different roots' error [duplicate]
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 ...
0
votes
1
answer
1k
views
Having multiple builds of same flutter app on android device
For debugging purposes - I want to have multiple builds of my flutter app. One - should be from google play and few others like "App Name - Dev" Or "App Name - STG". I tried to use ...
0
votes
0
answers
71
views
Could not resolve all files for configuration ':classpath'. While Running Flutter build apk
While run Flutter build apk getting thia error....Could not resolve all files for configuration ':classpath'.
This is my build.gradle...
App level gradle
App level gradle
I try run flutter clean and ...
0
votes
1
answer
525
views
A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable in flutter
I am using Convex Bottom Navigation plugin for the Bottom Navigation Bar.
My Kotlin Version is 1.8.10.
There is no problem running the app directly in mobile, but while Building the APK it is throwing ...
-1
votes
1
answer
98
views
Flutter Linux Build Encoding issue
When building an linux app using flutter build linux.
It started to having an issue with displaying non-latin characters.
flutter doctor -v
This image provides some detail on the issue I'm ...