小编Ace*_*Ace的帖子

Flutter:未处理的异常:状态错误:DocumentSnapshotPlatform 中不存在字段

我是 flutter 的新手,我正在通过教程构建一个社交媒体应用程序,我现在正在自定义该应用程序。现在我尝试向用户个人资料页面添加更多输入字段,然后我开始收到以下错误。当我可以登录时,我的时间线页面变成红色警告Bad state: field does not exist within the DocumentSnapshotPlatform

我跑了Flutter clean,现在我的用户无法登录应用程序

我收到此错误:

E/flutter ( 3971): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Bad state: field does not exist within the DocumentSnapshotPlatform
E/flutter ( 3971): #0      DocumentSnapshotPlatform.get._findKeyValueInMap
package:cloud_firestore_platform_interface/…/platform_interface/platform_interface_document_snapshot.dart:82
E/flutter ( 3971): #1      DocumentSnapshotPlatform.get._findComponent
package:cloud_firestore_platform_interface/…/platform_interface/platform_interface_document_snapshot.dart:98
E/flutter ( 3971): #2      DocumentSnapshotPlatform.get
package:cloud_firestore_platform_interface/…/platform_interface/platform_interface_document_snapshot.dart:113
E/flutter ( 3971): #3      DocumentSnapshot.get
package:cloud_firestore/src/document_snapshot.dart:49
E/flutter ( 3971): #4      DocumentSnapshot.[]
package:cloud_firestore/src/document_snapshot.dart:56
E/flutter ( 3971): #5      new User.fromDocument
package:findemed/models/user.dart:46
E/flutter ( 3971): #6      _HomeState.createUserInFirestore
package:findemed/pages/home.dart:152
E/flutter ( 3971): <asynchronous suspension> …
Run Code Online (Sandbox Code Playgroud)

firebase flutter google-cloud-firestore

8
推荐指数
4
解决办法
2万
查看次数

FLUTTER 错误:java.lang.RuntimeException:无法实例化应用程序

我对这个裸露的东西很陌生。

\n

我正在 VS 中运行我的代码

\n

我正在尝试运行我的 FLUTTER 应用程序,但不断收到错误:

\n
Launching lib\\main.dart on TECNO LC6 in debug mode...\n\xe2\x9c\x93 Built build\\app\\outputs\\flutter-apk\\app-debug.apk.\nE/AndroidRuntime(32535): FATAL EXCEPTION: main\nE/AndroidRuntime(32535): Process: com.oneclick.errands, PID: 32535\nE/AndroidRuntime(32535): java.lang.RuntimeException: Unable to instantiate application com.oneclick.errands.Application: java.lang.ClassNotFoundException: Didn't find class "com.oneclick.errands.Application" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.oneclick.errands-9wup51WXGNuAJqp8P2doyw==/base.apk"],nativeLibraryDirectories=[/data/app/com.oneclick.errands-9wup51WXGNuAJqp8P2doyw==/lib/arm, /data/app/com.oneclick.errands-9wup51WXGNuAJqp8P2doyw==/base.apk!/lib/armeabi-v7a, /system/lib]]\nE/AndroidRuntime(32535): at android.app.LoadedApk.makeApplication(LoadedApk.java:1069)\nE/AndroidRuntime(32535): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5923)\nE/AndroidRuntime(32535): at android.app.ActivityThread.access$1200(ActivityThread.java:213)\nE/AndroidRuntime(32535): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685)\nE/AndroidRuntime(32535): at android.os.Handler.dispatchMessage(Handler.java:106)\nE/AndroidRuntime(32535): at android.os.Looper.loop(Looper.java:193)\nE/AndroidRuntime(32535): at android.app.ActivityThread.main(ActivityThread.java:6758)\nE/AndroidRuntime(32535): at java.lang.reflect.Method.invoke(Native Method)\nE/AndroidRuntime(32535): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:497)\nE/AndroidRuntime(32535): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:912)\nE/AndroidRuntime(32535): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.oneclick.errands.Application"\non path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", …
Run Code Online (Sandbox Code Playgroud)

android gradle visual-studio dart flutter

5
推荐指数
1
解决办法
8197
查看次数