我已经让我的应用程序在Firebase RTDB上工作,但我想尝试Firestore,所以我按照说明安装了'‘插件。
当我现在运行我的应用程序时,我得到了以下错误:
Resolving dependencies of `Podfile`
[!] Unable to satisfy the following requirements:
- `Firebase/Firestore` required by `firebase_firestore (0.0.1)`
Specs satisfying the `Firebase/Firestore` depend
我已经将包添加到我的新flutter项目中,所以我创建了一个新的flutter项目,用于测试Firebase包。
在"package“之后得到了这个错误,并启动了该项目。
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registe
在打开应用程序时,颤振的防火墙软件包崩溃,这是日志文件,
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
我将来自firestore实例的一些数据存储在一个列表中,现在我想在屏幕上显示这些数据。 当我在终端中打印我的列表时,我看到以下内容: I/flutter (11351): [{num: 100, title: This is test 2}] 我定义了一个这样的列表: var list = new List(); 我正在点击一个按钮来获取数据。 RaisedButton(
onPressed: () async {
var documentReference = await Firestore.instance.colle
我希望获取firestore集合中的所有文档,然后使用它创建Artist对象。我可以从firestore获取数据并显示它,但是当我将一个艺术家添加到我的列表中时,它仍然是空的
class Artist{
late String id;
late String name;
late String year;
Artist(this.id, this.name, this.year);
}
class ArtistsService{
Future getAllArtists() async {
Future<QuerySnapshot<Map<Stri
此错误发生在运行命令'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
我试图在ios模拟器(Ios 13)上构建我的应用程序,但是构建失败了,导致了pod文件的错误: Podfile过时了
这就是错误。
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Warning: Podfile is out of date
This can cause a mismatched version of Flutter to be embedded in your app, which may result in App Store submission rejection or crashes.
在我的颤振应用程序中,我正在使用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
我想将一个自定义类的列表上传到云防火墙库,但我得到的错误是,我的自定义类不是<dynamic>类型的子类型。这是否因为无法将自定义类的列表上载到firebase而发生?我是否需要创建一个新的集合,而不是作为列表,还是有其他方法来解决这个问题?
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
//Class for the custom list
class CustomClass {
int id;