我在nixOS上,试图启动一个flutter项目。当我点击flutter run
时,出现以下错误。
* What went wrong:
Error resolving plugin [id: 'dev.flutter.flutter-gradle-plugin', version: '1.0.0']
> A problem occurred configuring project ':gradle'.
> Could not create service of type OutputFilesRepository using ExecutionGradleServices.createOutputFilesRepository().
> Failed to create parent directory '/nix/store/lbi43bsi63zvp7wjgswsp1vjrg4pv9b2-flutter-3.13.4-unwrapped/packages/flutter_tools/gradle/.gradle' when creating directory '/nix/store/lbi43bsi63zvp7wjgswsp1vjrg4pv9b2-flutter-3.13.4-unwrapped/packages/flutter_tools/gradle/.gradle/buildOutputCleanup'
有没有人知道这个问题,并知道如何解决它?我知道/nix/store
中的所有内容都是只读的,但这应该可以工作。
1条答案
按热度按时间z31licg01#
我遇到了类似的Gradle错误。最后,我成功地使用这个
nix develop
和这个flake在NixOS上构建了带有Flutter的.apk