windows - flutter 3.3 ShaderCompilerException ink_sparkle.frag 失败,退出代码为 -1073740791

标签 windows flutter shader flutter-web

自从每次我尝试构建我的项目时都将我的 flutter 更新到 3.3+,控制台上出现了这个错误:

Target web_release_bundle failed: ShaderCompilerException: Shader compilation of
"C:\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag" to "build\web\assets\shaders/ink_sparkle.frag"
failed with exit code -1073740791.

Compiling lib\main.dart for the Web...                             52,1s
Exception: Failed to compile application for the Web.

我试过运行 flutter clean,删除项目并再次从 github 下载它,从 c:\flutter 文件夹中清除 pub-cache 并删除 flutter 并再次安装它,但没有任何效果

最佳答案

如果您使用的是 Mac,请尝试打开“安全和隐私”并向请求它的应用授予权限。 Image Example

这似乎是断章取意的。但这对我有用!

22/02/2023 更新

该解决方案也适用于此类错误: 错误(Xcode):目标 release_ios_bundle_flutter_assets 失败:IconTreeShakerException:字体子集设置失败,退出代码为 -9。

关于windows - flutter 3.3 ShaderCompilerException ink_sparkle.frag 失败,退出代码为 -1073740791,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73732210/

相关文章:

java - MulticastSocket 失败后没有响应

python - 目录名有空格时如何使用copyfile?

android - Flutter Pub : Expected a key while parsing a block mapping. 路径:

android - 为什么我的 Flutter App 构建 APK 后会出现灰屏?

glsl - 如何确定性地检测着色器片段在其 2x2 像素四边形中的位置?

opengl - 如何使用鼠标改变OpenGL相机

python - PIL : IOError: [Errno 13] Permission denied: [picturename. jpg]

flutter - 带有 Flutter 和 Firestore 的 GridView

ios - 没有匹配函数调用 'dot' 和 'reflect'

Windows批处理文件获取C :\drive total space and free space available