簡體   English   中英

必須返回非空值,因為返回類型“UserCredentialPlatform”不允許空值

[英]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: 錯誤:'qthrow' 不是類型。 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:錯誤:預期';' 在這之后。 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: 錯誤:必須返回非空值,因為返回類型“UserCredentialPlatform”不允許為空。

  • 'UserCredentialPlatform' 來自 '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')。 未來的 createUserWithEmailAndPassword( ^

無法編譯應用程序。 退出(信號項)

這是我在 flutter 中執行代碼時遇到的錯誤

制作 flutter auth 的版本:2.0.0 沒有 ^

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM