我正在做一个购物/销售类的申请。在这里,我想要将我的产品列表添加到一个名为book的集合中,每当任何卖家添加他的产品时。我写了 Firestore.instance.collection('books').add({
'title':b.title, //b is an argument I got in the method
}); 但是当我运行它时,Firestore中没有添加任何集合。该怎么办呢?控制台一直到这里,然后什么都没有发生: E/flutter (15848):#28 _invoke1 (dart:u
我正在制作一个实时聊天应用程序。下面的函数是在数据库中新建一个聊天室。getChatRoomId基本上为聊天室创建了一个唯一id,该id在数据库中分配给chat_room_id。该chat_room_id有一个集合,即chat_room_id本身和users数组。当我调用此函数时出现错误。我正在打印数据,就像您在下面的方法中看到的那样。方法调用是完美的(here i am),看起来我有一个chat_room_id,因为我expected.Also我有一个chatRoomMap。但是,当我尝试打印出信息时,它会打印出null。请查看下面的错误部分以查看打印结果。 createChatRoomA
发生异常。FirebaseException (cloud_firestore/权限-被拒绝调用者没有执行指定操作的权限。) ~ master ● flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.3.0-24.1.pre, on macOS 12.0 21A5268h darwin-x64, locale en-RU)
[✓] Android toolchain - develop for Android devices (Andr
在调试模式下,一切都很完美。第一次发生这种情况时,我将颤振版本更新为1.10.x,我不记得我正确地使用了哪个版本。应该是1.7.8,是稳定的。为了解决这个问题,我将其降级为1.7.8+4,并降低了与firebase相关的发布包的级别。但错误仍然存在。
堆栈跟踪相关错误,从gogle播放控制台捕获
java.lang.RuntimeException:
at com.google.firebase.firestore.util.AsyncQueue.a (AsyncQueue.java:379)
at com.google.firebase.firestore.util.AsyncQu
在打开应用程序时,颤振的防火墙软件包崩溃,这是日志文件,
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101): Failed to handlemethod call
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101):
java.lang.NullPointerException: Firestore component is not present.
E/MethodChannel#plugins.flutter.io/cloud_firestore(28101
当我使用DocumentSnapshot时,我正在开发一个flutter app.My flutter项目在工厂构造函数中显示错误 User.dart import 'package:cloud_firestore/cloud_firestore.dart';
class User {
final String id;
final String username;
final String email;
final String photoUrl;
final String displayname;
final String bio;
User
我使用VisualStudio作为集成开发环境。在添加cloud_firestore:^0.13.7作为依赖项并运行pub get时,我收到以下错误: [firebase] flutter pub get
Running "flutter pub get" in firebase...
Because cloud_firestore >=0.13.4 depends on cloud_firestore_web ^0.1.1 which depends on firebase ^7.0.0, cloud_firestore