Questions tagged [flutter-upgrade]

44 questions
9
votes
4 answers

"Your flutter checkout has local changes that would be erased by upgrading." when running flutter upgrade

I recently decided to run flutter upgrade, but after starting, the command terminal states: Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via "git…
Nerdy Bunz
  • 6,040
  • 10
  • 41
  • 100
4
votes
6 answers

Flutter upgrade error: Unknown flutter tag

~ flutter upgrade Unknown flutter tag. Abandoning upgrade to avoid destroying local changes. It is recommended to use git directly if not working on an official channel. i try to upgrade my flutter sdk to latest version stable…
Cfcool100
  • 67
  • 6
3
votes
0 answers

After upgrading target sdk version to 33(android 13), Flutter app is installing but not launching automatically

I have changed targetSdkVersion and compileSdkVersion to 33,and minSdkVersion is 23 in build.gradle file and in AndroidManifest.xml, updated permissions like this When I do flutter run, App is installing in emulator(api level 33) and apk also…
2
votes
3 answers

Error: Method not found: 'NullThrownError' in flutter

I was getting the below error while running the flutter application post flutter upgrade to 3.10.6 Failed to build…
Sanakhatun Shaikh
  • 2,089
  • 3
  • 11
  • 18
2
votes
2 answers

Flutter 3 : Warning : Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null

I just upgraded to Flutter 3 and my flutter project console is full of warnings. Did anyone know how to fix these warnings or should I wait for the stable update from flutter itself.
MANISH
  • 2,883
  • 4
  • 11
  • 30
2
votes
7 answers

Unable to run Flutter project on Android after update

I've been trying to get my Flutter project to run after upgrading it to 2.10.4 and it's been a headache from the start. The project runs fine on a browser, but I'm having difficulty running on an Android emulator. I think I'm at the last hurdle, but…
2
votes
2 answers

How to upgrade your flutter project (app) to the latest flutter version after null safety?

I want to upgrade my project which is on Flutter 2.0 to the latest version of flutter (2.5). I have already seen this question which is most relevant. How do I upgrade an existing Flutter app? In my Mac, I have Flutter upgraded to 2.5. You can see…
Ahmad Khan
  • 757
  • 9
  • 22
2
votes
3 answers

A lot of errors after upgrade to flutter 2.5.0

I have updated Flutter to 2.5.0 in my project and getting a lot of errors, for example: Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ …
1
vote
1 answer

flutter upgrade doesn't work on the Ubuntu

My old Flutter version is Flutter 3.7.7 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2ad6cd72c0 (4 months ago) • 2023-03-08 09:41:59 -0800 Engine • revision 1837b5be5f Tools • Dart 2.19.4 • DevTools 2.20.1 After I…
1
vote
0 answers

My Flutter app no longer runs on Android after upgrade from Flutter 3.0.5 to 3.7.9

I just upgraded to Flutter 3.7.9 and now cannot run the app on Android. On iOS and web the app runs fine If I revert to Flutter 3.0.5, the Android app runs fine (that's also on a different branch since a bunch of dependencies broke with 3.7.9 and…
Nikko
  • 163
  • 2
  • 11
1
vote
3 answers

Modal Bottom sheet route issue in flutter 3.7.0

I have upgraded my flutter version from 3.3.10 to 3.7.0 and now getting the following error. ModalBottomSheetRoute' is imported from both 'package:flutter/src/material/bottom_sheet.dart' and 'package:modal_bottom_sheet/src/bottom_sheet_route.dart I…
1
vote
2 answers

Flutter version 3.3.2 on channel unknown at D:\flutter Upstream repository unknown

So I want to upgrade flutter version, but when I run flutter doctor, this error appears Doctor summary (to see all details, run flutter doctor -v): [!] Flutter (Channel unknown, 3.3.2, on Microsoft Windows [Version 10.0.19044.2130], locale en-GB) …
1
vote
1 answer

How can I edit the MainActivity.kt file in my flutter project and how is it even created?

I upgraded a flutter project from 2.10 to 3.3 (same error occured on 3.0). This is the error im getting: e: path/MainActivity.kt: (82, 34): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type List? e:…
1
vote
2 answers

Flutter build failed after upgrading to Flutter v3

I've updated my app from v2.2.10 to Flutter 3 and it shows the following error. FAILURE: Build failed with an exception. [ ] * Where: [ ] Script '/Users/user/fvm/versions/3.0.0/packages/flutter_tools/gradle/flutter.gradle' line:…
Laura
  • 402
  • 1
  • 7
  • 24
1
vote
1 answer

Flutter 3.0.0 bugs

after upgrading to the latest version 3.0.0 then some various bugs appear in some of my projects that run well before qr_code_scanner:compileRelaseKotlin Duplicate GlobalKey detected in widget tree Warning: Operand of null-aware operation '??'…
rooxane.mac
  • 81
  • 2
  • 4
1
2 3