Questions tagged [flutter-build]

146 questions
0
votes
0 answers

flutter build apk, but lib dir is not shrinking?

I use this command: flutter build apk --obfuscate --split-debug-info=debugInfo --target-platform android-arm,android-arm64,android-x64 --split-per-abi --no-tree-shake-icons My colleagues and I use the same command to build an APK. But the size…
wangxp
  • 1
0
votes
0 answers

Changing value of integer.toString() with Provider in flutter

I am new to flutter. I am trying to display an integer value. The value changes on some conditions. Now I am trying to update the widgets and the displaying value of the integer with Provider / ChangeNotifier but it doesn't work. My…
0
votes
0 answers

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-Bold.ttf - asset:…
0
votes
1 answer

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 ` and then move the dart code, assets and pubspec.yaml to the new project. Hi there! I…
xelanac
  • 21
  • 4
0
votes
1 answer

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 build start", choosing type 'ad-hoc' and wait for it to…
0
votes
1 answer

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: [] jobs: - template:…
0
votes
0 answers

Flutter Build size increased after updating minSdkVersion to 23

After I updated Flutter to 3.7, the Build size increased after updating minSdkVersion to 23 in the flutter new project, when I updated minSdkVersion from 21 to 23, I faced that the Apk size increased from 17mg to 37 mg. I don't know why? And is it…
Mori m
  • 11
  • 1
  • 2
0
votes
1 answer

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 flavors and modifying android:label="@string/app_name" however I…
Avdept
  • 2,261
  • 2
  • 26
  • 48
0
votes
0 answers

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 flutter build apk... I add latest kotlin version ,…
0
votes
0 answers

initState async operation not working after installation in real device using build apk file but works fine in android emulator in flutter

I am following Angela Yu Bootcamp for flutter I have came across clima weather app project using geo locator for location and openweathermap Api. All my code works fine in android emulator but after building apk in real android device or mobile it…
0
votes
1 answer

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 error. ** C:/Users/Vasanthan…
0
votes
3 answers

Force the rebuild of an open dropdown in Flutter

When a `DropdownButtonFormField' widget's build method is executed, if the user has already clicked on it and the options are diplayed in the UI, it seems those options don't get updated by the build method. I've tried various aproaches and asked…
Andre Clements
  • 634
  • 1
  • 7
  • 15
0
votes
1 answer

Flutter Build iOS Error 'FirebaseCore/FirebaseCore.h' file not found

Cannot build project on iPhone 11 and above but archive and used in iPhone X. This is the error is I'm facing... 'FirebaseCore/FirebaseCore.h' file not found Also on top of it. Inside AppDelegate.swift:3:8 Could not build Objective-C module…
Taimoor Sikander
  • 605
  • 1
  • 3
  • 11
0
votes
1 answer

running flutter build app bundle not working

i made keystore according to flutter documentation using this command keytool -genkey -v -keystore %userprofile%\upload-keystore.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias upload and I created my key.properties in…
0
votes
2 answers

My app is running perfectly but, I am unable to build app-release.apk

E:\flutter-3.3.7\flutter\bin\flutter.bat --no-color build apk Running Gradle task 'assembleRelease'... Warning: The plugin path_provider_android requires Android SDK version 33. For more information about build configuration, see…