我使用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
我正在尝试获取本flutter教程所需的cloud_firestore包:
当我运行flutter packages get时,我只能返回:Package cloud_firestore has no versions that match >=0.7.0 <0.8.0 derived from...
网站上的cloud_firestore包显示最新版本是0.7.2,我也尝试过该版本,但得到了相同的错误。
我还尝试了flutter的dev、master和beta通道,但没有成功获得这个包。
下面是我的pubspec.yaml文件:
name: test_app
descriptio
我正在制作一个实时聊天应用程序。下面的函数是在数据库中新建一个聊天室。getChatRoomId基本上为聊天室创建了一个唯一id,该id在数据库中分配给chat_room_id。该chat_room_id有一个集合,即chat_room_id本身和users数组。当我调用此函数时出现错误。我正在打印数据,就像您在下面的方法中看到的那样。方法调用是完美的(here i am),看起来我有一个chat_room_id,因为我expected.Also我有一个chatRoomMap。但是,当我尝试打印出信息时,它会打印出null。请查看下面的错误部分以查看打印结果。 createChatRoomA
此错误发生在运行命令'flutter packages get‘时。我为pubspec.yaml文件添加了一些依赖项以使用firebase身份验证:
name: flutter_auth
description: A new Flutter project.
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to y
在我的flutter/firebase项目中安装的pod有一个很大的问题。
每次"pod install“后都会收到这样的信息:
"Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '8.0.0' defined in 'firebase_core'
firebase_anal
在打开应用程序时,颤振的防火墙软件包崩溃,这是日志文件,
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
Launching lib\main.dart on HTC One M9PLUS in debug mode... Initializing gradle... Resolving dependencies... Gradle task 'assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedRe
在我的颤振应用程序中,我正在使用Firebase Firestore。在debug模式下,一切都很好。但是,在release模式下,我会得到以下错误。我看到了一个类似的问题,但它不能解决我的问题。
[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: [cloud_firestore/unavailable]
The service is currently unavailable. This is a most likely a transient condition and may be corrected b
我一直在尝试在iOs模拟器iPhone 12中运行我的flutter项目,但是,我在StackOverflow或Github上找到的任何答案或建议都没有解决版本依赖的问题。 我面临的问题是: [!] CocoaPods could not find compatible versions for pod "FirebaseCore":
In Podfile:
cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 2.5.3, which depends on
我想了解如何在2021年2月将Firebase与Flutter一起使用。我的教程引用了Firestore.instance,但它不起作用。最终我胡乱地进入了FirebaseFirestore.instance,这些库是相同的吗?
下面是我正在使用的代码块。但是,我遇到了这个编译器错误:
The argument type 'Future<GridView>' can't be assigned to the parameter type 'Widget'.
我怎样才能摆脱这个错误?
import 'package:flutter/ma
我的flutter应用程序没有在ios模拟器上运行,它是这样显示的: [!] Automatically assigning platform `iOS` with version `9.0` on target
`Runner` because no platform was specified. Please specify a platform for
this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error ru
当我在终端中输入“ pub get”命令时,我得到了这个错误;
错误消息:
Because cloud_firestore >=0.13.4 <0.14.0-dev.1 depends on cloud_firestore_web ^0.1.1 which depends on
firebase ^7.0.0, cloud_firestore >=0.13.4 <0.14.0-dev.1 requires firebase
^7.0.0.
So, because firebase depends on cloud_firestore ^0.13.7 and fire
我试图在Google中创建一个节点,并使用它的唯一id在中创建一个相同名称的文档。
我正在使用谷歌的PHP客户端:
我已经阅读了他们的文档:
这是我的代码:
<?php
use \Google\Cloud\Firestore\FirestoreClient;
use \Google\Cloud\Core\Timestamp;
use \Google\Cloud\Firestore\Transaction as FirestoreTransaction;
use \grptx\Firebase as FirebaseClient;
class FirestoreTest
{
p