../../../AppData/Local/Pub/Cache/hosted/pub.dev/cloud_firestore_platform_interface-5.7.7/lib/src/platform_interface/utils/load_bundle_task_state.dart:13:13: Error: Method not found: 'FallThroughError'.
throw FallThroughError();
^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_platform_interface-6.10.1/lib/src/action_code_info.dart:65:15: Error: The method 'FallThroughError' isn't defined for the class 'ActionCodeInfo'.
- 'ActionCodeInfo' is from 'package:firebase_auth_platform_interface/src/action_code_info.dart' ('../../../AppData/Local/Pub/Cache/hosted/pub.dev/firebase_auth_platform_interface-6.10.1/lib/src/action_code_info.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FallThroughError'.
throw FallThroughError();
^^^^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
I don’t know where to put the FallThroughError(); method.
4
Answers
Hello I got the same error this morning check this github
issue
upgrade your dependencies to latest version it will solve your problem.
Just run this in your terminal:
flutter clean
flutter packages get
flutter downgrade
flutter run
Thats worked for me!
Run the Flutter command to update the dependencies.
This should fix the issue by updating the
cloud_firestore_platform_interface
as follows.iOS
On iOS you might get this error when running the project.
To fix this issue,
Podfile.lock
under the iOS foldercd ios
in the terminal.pod install --repo-update
The app should now run fine.