简体   繁体   中英

A non-null value must be returned since the return type 'UserCredentialPlatform' doesn't allow null

../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.1.0/lib/src/method_channel/method_channel_firebase_auth.dart:272:7: Error: 'qthrow' isn't a type. qthrow convertPlatformException(e); ^^^^^^../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.1.0/lib/src/method_channel/method_channel_firebase_auth.dart:272:14: Error: Expected ';' after this. qthrow convertPlatformException(e); ^^^^^^^^^^^^^^^^^^^^^^^^../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.1.0/lib/src/method_channel/method_channel_firebase_auth.dart:255:34: Error: A non-null value must be returned since the return type 'UserCredentialPlatform' doesn't allow null.

  • 'UserCredentialPlatform' is from 'package:firebase_auth_platform_interface/src/platform_interface/platform_interface_user_credential.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.1.0/lib/src/platform_interface/platform_interface_user_credential.dart'). Future createUserWithEmailAndPassword( ^

Failed to compile application. Exited (sigterm)

this is the error i get when i execute my code in flutter

make the version of flutter auth: 2.0.0 without ^

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM