【发布时间】:2020-01-03 16:05:53
【问题描述】:
每当我尝试构建此应用程序并运行此应用程序时,它都会成功运行,但无法从 firebase 数据库获取图像,并且出现此错误。我尝试使用 firebase 插件并在控制台中检查应用程序是否已配置但应用程序已正确连接我可以创建用户并在应用程序中登录也能够上传照片但无法接收它
D/FlutterView(19804): Detaching from a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@daebe54
I/OpenGLRenderer(19804): Initialized EGL, version 1.4
D/OpenGLRenderer(19804): Swap behavior 1
W/RenderThread(19804): type=1400 audit(0.0:22544): avc: denied { search } for name="kgsl-3d0" dev="sysfs" ino=22816 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
W/Adreno-ES20(19804): <get_gpu_clk:229>: open failed: errno 13
W/Adreno-EGL(19804): <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
W/Adreno-EGL(19804): <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
I/SurfaceView(19804): updateSystemUiVisibility, blackBackground = false, viewVisibility = 0, appBounds = Rect(0, 0 - 720, 1440), mScreenRect = Rect(0, 0 - 720, 1356), surface = io.flutter.embedding.android.FlutterSurfaceView{ff4c83e V.E...... ......ID 0,0-720,1356}
D/FlutterView(19804): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@daebe54
W/1.gpu (19804): type=1400 audit(0.0:22545): avc: denied { search } for name="kgsl-3d0" dev="sysfs" ino=22816 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:sysfs_kgsl:s0 tclass=dir permissive=0
W/Adreno-ES20(19804): <get_gpu_clk:229>: open failed: errno 13
W/Adreno-EGL(19804): <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
W/Adreno-EGL(19804): <qeglDrvAPI_eglGetConfigAttrib:612>: EGL_BAD_ATTRIBUTE
I/flutter (19804): Image Url: https://firebasestorage.googleapis.com/v0/b/blog-8c8f3.appspot.com/o/Post%20Image%2F2019-12-31%2003%3A09%3A37.024688.jpg?alt=media&token=0cf6ac7c-a2cd-4e7b-b85c-da21d8f3488c
I/flutter (19804): Length: [Instance of 'Posts'].length
[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════[39;49m
[38;5;244mThe following assertion was thrown building:[39;49m
'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 22 pos 14: 'url != null': is not true.
[38;5;248mEither the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
[39;49m
[38;5;244mWhen the exception was thrown, this was the stack[39;49m
[38;5;244m#2 new NetworkImage[39;49m
[38;5;244m#3 new Image.network[39;49m
[38;5;248m#4 _HomePageState.postsUI[39;49m
[38;5;248m#5 _HomePageState.build.<anonymous closure>[39;49m
[38;5;244m#6 SliverChildBuilderDelegate.build[39;49m
[38;5;244m...[39;49m
[38;5;248m════════════════════════════════════════════════════════════════════════════════[39;49m
[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════[39;49m
[38;5;244mThe following assertion was thrown building:[39;49m
'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 22 pos 14: 'url != null': is not true.
[38;5;248mEither the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
[39;49m
[38;5;244mWhen the exception was thrown, this was the stack[39;49m
[38;5;244m#2 new NetworkImage[39;49m
[38;5;244m#3 new Image.network[39;49m
[38;5;248m#4 _HomePageState.postsUI[39;49m
[38;5;248m#5 _HomePageState.build.<anonymous closure>[39;49m
[38;5;244m#6 SliverChildBuilderDelegate.build[39;49m
[38;5;244m...[39;49m
[38;5;248m════════════════════════════════════════════════════════════════════════════════
这是我的代码链接blog
【问题讨论】:
-
最好也包含一些有问题的代码。
-
我在最后链接了它
-
请添加出现此错误的代码部分
-
我已经在上面添加了日志文件
[38;5;248m════════ Exception caught by widgets library ═══════════════════════════════════[39;49m [38;5;244mThe following assertion was thrown building:[39;49m 'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 22 pos 14: 'url != null': is not true. -
您在哪个文件中收到此错误?你的 git 有 6 或 7 个文件
标签: android firebase flutter dart