简体   繁体   English

Flutter macOS 构建错误:访问构建数据库磁盘 I/O 错误 ** BUILD FAILED **

[英]flutter macOS build error: accessing build database disk I/O error ** BUILD FAILED **

I received the following error while trying to build my Flutter project for MacOS,我在尝试为 MacOS 构建 Flutter 项目时收到以下错误,

error: accessing build database "..." disk I/O error 
** BUILD FAILED **

I tried running flutter clean and invalidating caches and restarting in Android Studio and IntelliJ, but it didn't help.我尝试在 Android Studio 和 IntelliJ 中运行flutter clean和使缓存无效并重新启动,但它没有帮助。

如果您有 Google Drive Desktop 同步您的桌面,请确保您不同步您正在开发的文件夹。暂停同步或将开发文件夹移到 Google Drive 正在同步的位置之外。

after hours of researching the problem, it was actually the google drive syncing causes the build to fail.经过数小时的研究,实际上是谷歌驱动器同步导致构建失败。 Once I paused the sync, the program executed perfectly.一旦我暂停同步,程序就会完美执行。 Thanks @dantechguy谢谢@dantechguy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM