mo-ah-dawood / fcm_config

10 stars 12 forks source link

firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:13:11: Error: Method not found: 'Error.throwWithStackTrace'. #27

Closed s2yed closed 2 years ago

s2yed commented 2 years ago

firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:13:11: Error: Method not found: 'Error.throwWithStackTrace'. Error.throwWithStackTrace(exception, stackTrace); ^^^^^^^^^^^^^^^^^^^ /C:/Users/TEBALINK/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:16:9: Error: Method not found: 'Error.throwWithStackTrace'. Error.throwWithStackTrace( ^^^^^^^^^^^^^^^^^^^ /C:/Users/TEBALINK/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:11:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null. Never convertPlatformException(Object exception, StackTrace stackTrace) { ^

FAILURE: Build failed with an exception.

BUILD FAILED in 29s Exception: Gradle task assembleDebug failed with exit code 1

mo-ah-dawood commented 2 years ago

try fcm_config 3.3.5

s2yed commented 2 years ago

try fcm_config 3.3.5

The current Dart SDK version is 2.15.1.

Because fcm_config >=3.3.5 depends on firebase_core >=1.13.1 which requires SDK version >=2.16.0 <3.0.0, fcm_config >=3.3.5 is forbidden. So, because sam_card depends on fcm_config ^3.3.5, version solving failed. pub get failed (1; So, because sam_card depends on fcm_config ^3.3.5, version solving failed.)

my app

sdk: ">=2.12.0 <3.0.0"

mo-ah-dawood commented 2 years ago

It's not in fcm config The newest firebase packages needs SDK 2.16 So you have to upgrade your SDK