简体   繁体   English

未为“FirebaseAppCheck”类型定义方法“getInstance”

[英]The method 'getInstance' isn't defined for the type 'FirebaseAppCheck'

I am trying to use firebase new feature which is App check.我正在尝试使用 Firebase 新功能,即应用检查。 I am following the instructions from their documentation app check .我正在按照他们的文档应用检查中的说明进行操作。

For this line对于这条线

FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck.getInstance();

The method getInstance isn't defined for the type FirebaseAppCheck .没有为FirebaseAppCheck类型定义方法getInstance

Does anyone know what should I do?有谁知道我该怎么办?

尝试:

FirebaseAppCheck firebaseAppCheck = FirebaseAppCheck.instance;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未为“AuthService”类型定义方法“UserUpdateInfo” - The method 'UserUpdateInfo' isn't defined for the type 'AuthService' 没有为“FirebaseDatabase”类型定义方法“ref” - The method 'ref' isn't defined for the type 'FirebaseDatabase' 没有为“FirebaseApp”类型定义“配置”方法 - The method 'configure' isn't defined for the type 'FirebaseApp' 没有为“BuildContext”类型定义方法“showSnackBar” - The method 'showSnackBar' isn't defined for the type 'BuildContext' “没有为类型文档引用定义的方法”? - “ the method where isn't defined for the type documentreference”? 没有为“FirebaseStorage”类型定义方法“getReferenceFromUrl” - The method 'getReferenceFromUrl' isn't defined for the type 'FirebaseStorage' 没有为 FirebaseStorage 类型定义方法“collection” - The method "collection" isn't defined for the type FirebaseStorage 没有为“PhoneAuthProvider”类型定义方法“getCredential” - The method 'getCredential' isn't defined for the type 'PhoneAuthProvider' 没有为“用户”类型定义方法“fromDocument”。 (未定义方法) - The method 'fromDocument' isn't defined for the type 'User'. (undefined_method ) 方法“sendEmailVerification”没有为类型“UserCredential”定义。 Firebase flutter - The method 'sendEmailVerification' isn't defined for the type 'UserCredential'. Firebase flutter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM