gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 01:29:04 35 4
gpt4 key购买 nike

自从每次我尝试构建我的项目时都将我的 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/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com