-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build my app using flutter 3.0 #103571
Comments
@mgenware I think your link isn't my case. My flutter SDK is upgraded to 3.0 from 2.10. So my code and 3rd party packages are already using null-safety. In addition, my code was no error or warning in IDE after I changed the |
Same problem here. Doctor summary (to see all details, run flutter doctor -v): • No issues found! |
@runkids I am having the same issue but have you tried flutter m1 native instead of Rosetta? Could help |
Same problem here |
I'm going to reopen this issue because #103561 refers to some warnings whereas this issue refers to not being able to build an app at all. |
@YowFung Can you post the full logs? In the screenshot you included above there are only warnings, which should be non-fatal and should not be preventing the app from starting. |
Yeah, the crash doesn't come from the warnings, but from different third-party packages that are broken on Flutter 3. For me, this happens with the workmanager package. There is also #103648, where it seems that gallery media picker is the problem. |
@Hixie |
@darshankawar This way is not working for me. |
@Hixie Now I can successfully upload the txt file, the full log is here. |
@YowFung https://pub.dev/packages/get/install https://pub.dev/packages/xterm https://pub.dev/packages/bitsdojo_window/versions/0.1.1/install Which might not be compatible with latest 3.0 stable changes, so you may need to reach out to respective plugin owners. |
These are popular plugins but a part of their owners may no longer maintain them or have no time to do it in the short term. |
Ok the actual problem in those logs is the lines that say "Error":
Looks like we added The solution is to say |
Both |
There's certainly something to be said for that, yeah. (Though sometimes we do it on purpose, e.g. |
Thank you for the patch. I will make use of it in the next release as I am back working on the package. |
Fixed in |
I cannot build my app, the same errors are still also in Flutter version [3.0.1]. I updated Dart and did dart fix --apply But it didn't help |
If you are getting warnings like below pub-cache/hosted/pub.dartlang.org/flutter_riverpod-1.0.3/lib/src/framework.dart:275:26: Warning: Operand of null-aware operation '!' has type Find the package name from that warning Got to that library doc page (https://pub.dev/packages/<package_name>) |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I Can't build my app after I upgrade the flutter SDK to 3.0.
flutter doctor -v
The text was updated successfully, but these errors were encountered: