我正在尝试运行 flutter 应用程序,但出现错误无法写入文件 ink_sparkle.frag.spirv 我想这是一个权限错误,我在管理模式下打开了 Android studio。我在 Windows 10 中禁用了受控文件夹访问。我在很多地方搜索了有关此错误的信息并应用了很多方法,但没有人适合我。例如这个 stackoverflow 解决方案和这个 github 解决方案。两者都不适用于我的情况。颤振版本是:
Flutter 3.16.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b0366e0a3f (7 days ago) • 2023-12-05 19:46:39 -0800
Engine • revision 54a7145303
Tools • Dart 3.2.3 • DevTools 2.28.4
我收到此错误。
Could not write file to F:\Company\SarmadEngineeringSolutions\Projects\ResturantSoftware\RestaurantStandardSoftware\foodie-multiple-restaurant-delivery-flutter\Foodie_V5.2.1_Source_Code\foodie-5.2\Foodie_Customer\build\app\intermediates\flutter\debug\flutter_assets\shaders/ink_sparkle.frag.spirv
Target debug_android_application failed: ShaderCompilerException: Shader compilation of "E:\dev\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag" to "F:\Company\SarmadEngineeringSolutions\Projects\ResturantSoftware\RestaurantStandardSoftware\foodie-multiple-restaurant-delivery-flutter\Foodie_V5.2.1_Source_Code\foodie-5.2\Foodie_Customer\build\app\intermediates\flutter\debug\flutter_assets\shaders/ink_sparkle.frag" failed with exit code 1.
impellerc stdout:
impellerc stderr:
Could not write file to F:\Company\SarmadEngineeringSolutions\Projects\ResturantSoftware\RestaurantStandardSoftware\foodie-multiple-restaurant-delivery-flutter\Foodie_V5.2.1_Source_Code\foodie-5.2\Foodie_Customer\build\app\intermediates\flutter\debug\flutter_assets\shaders/ink_sparkle.frag.spirv
FAILURE: Build failed with an exception.
* Where:
Script 'E:\dev\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1350
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'E:\dev\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 19s
Exception: Gradle task assembleDebug failed with exit code 1
现在我需要您的专家建议来解决此错误。期待您的友好回复。
扑干净。 然后再次运行该项目。
或者删除生成的构建文件夹,然后再次运行项目。