Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Method not found: 'FallThroughError'. throw FallThroughError();

../../../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.

like image 819
Aqiela Adhlina Avatar asked Dec 13 '25 10:12

Aqiela Adhlina


2 Answers

Run the Flutter command to update the dependencies.

flutter pub upgrade

This should fix the issue by updating the cloud_firestore_platform_interface as follows.

cloud_firestore_platform_interface version update

iOS

On iOS you might get this error when running the project.

CocoaPods's specs repository is too out-of-date to satisfy dependencies.

To fix this issue,

  • Delete the Podfile.lock under the iOS folder
  • Navigate to iOS folder, by running cd ios in the terminal.
  • Run the command pod install --repo-update

The app should now run fine.

like image 190
Aditya Thakur Avatar answered Dec 15 '25 17:12

Aditya Thakur


upgrade your dependencies to latest version it will solve your problem.

like image 36
Munsif Ali Avatar answered Dec 15 '25 17:12

Munsif Ali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!