Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging 错误:访问被拒绝查找属性;vendor.gralloc.禁用“硬件缓冲区”;_Debugging_Flutter - Fatal编程技术网

Debugging 错误:访问被拒绝查找属性;vendor.gralloc.禁用“硬件缓冲区”;

Debugging 错误:访问被拒绝查找属性;vendor.gralloc.禁用“硬件缓冲区”;,debugging,flutter,Debugging,Flutter,我是一名高级初学者,自学成才,目前正在学习如何使用颤振/飞镖构建应用程序。在对代码进行更改以使网络映像居中后,我的Visual Studio代码调试控制台中出现了上述消息。我正在使用我的手机进行调试,代码在中心之前成功运行。我在谷歌上搜索了有引号和无引号的信息,其中有五个结果是我没有发现的,没有10个结果是不相关的 我还能告诉你什么?谢谢你的帮助 Built build\app\outputs\apk\debug\app-debug.apk. Reloaded 1 of 440 librarie

我是一名高级初学者,自学成才,目前正在学习如何使用颤振/飞镖构建应用程序。在对代码进行更改以使网络映像居中后,我的Visual Studio代码调试控制台中出现了上述消息。我正在使用我的手机进行调试,代码在中心之前成功运行。我在谷歌上搜索了有引号和无引号的信息,其中有五个结果是我没有发现的,没有10个结果是不相关的

我还能告诉你什么?谢谢你的帮助

Built build\app\outputs\apk\debug\app-debug.apk.
Reloaded 1 of 440 libraries in 1,455ms.
I/OpenGLRenderer(29193): Initialized EGL, version 1.4
D/OpenGLRenderer(29193): Swap behavior 2
W/RenderThread(29193): type=1400 audit(0.0:1932): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=21490 scontext=u:r:untrusted_app:s0:c218,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
E/libc    (29193): Access denied finding property "vendor.gralloc.disable_ahardware_buffer"
Reloaded 0 of 440 libraries in 359ms.```

查看评论,问题似乎已通过运行应用程序重新启动得到解决。鉴于此问题已通过运行重新启动得到修复,可能是保留了某个应用程序状态导致了此错误


根据给定的细节,很难确定此问题的原因。如果有人有类似的错误,请将其归档到此处

因此,如果您删除
中心
小部件,它是否有效?图像渲染,调试控制台显示:
在调试模式下在Pixel 3a XL上启动lib\main.dart。。。已生成build\app\outputs\apk\debug\app-debug.apk。I/OpenGLRenderer(12080):初始化EGL,版本1.4 D/OpenGLRenderer(12080):交换行为2 E/libc(12080):拒绝访问查找属性“vendor.gralloc.disable_ahardware_buffer”W/RenderThread(12080):type=1400 audit(0.0:2121):avc:denied{read}for name=“u:object\r:vendor\u default\u prop:s0”dev=“tmpfs”ino=21490 scontext=u:r:untrusted\u app:s0:c218、c256、c512、c768 tcontext=u:object\u r:vendor\u default\u prop:s0 tclass=file permissive=0
当我再次为center更新代码并进行热重新加载时,我收到了相同的消息。但是,当我重新启动(而不是热重新加载)时,消息消失,图像在中心正确呈现。错误显然已解决,但我欢迎有关拒绝访问消息含义的教育,以便我可以学习。