我尝试使用 OneDrive 文件夹来存储我的 Flutter 项目 [Windows 10, Android Studio]。然后我在另一台机器上对其进行了编辑 [相同的配置]。该项目最初在第一台机器上编译得很好,在更改后在第二台机器上编译得很好。更改后再次在第一台机器上运行它,我收到以下错误:
Execution failed for task ':app:processDebugResources'.
Path "build/[package]/intermediaries/compiled_local_resources" is not a readable directory.
Run Code Online (Sandbox Code Playgroud)
我已经尝试了许多类似但不是等效的问题中提到的解决方案:
从我的依赖项中删除 [package](这会导致在错误消息中识别出不同的包)。
按 File -> Invalidate Caches / Restart...
在 gradle.properties 中注释掉“org.gradle.jvmargs=-Xmx1536M”
Execution failed for task ':app:processDebugResources'.
Path "build/[package]/intermediaries/compiled_local_resources" is not a readable directory.
Run Code Online (Sandbox Code Playgroud)
这些都没有奏效。