【发布时间】:2020-07-31 20:17:48
【问题描述】:
有时,我会看到我的整个构建工件目录充满了重复的文件,这些文件的名称都包含“2”。
./testapp/build/generated/res/pngs/debug/drawable-xhdpi/ic_launcher_background 2.png
./testapp/build/generated/res/pngs/debug/drawable-xxhdpi/ic_launcher_background 2.png
./testapp/build/generated/res/pngs/debug/drawable-hdpi/ic_launcher_background 2.png
./testapp/build/generated/res/pngs/debug/drawable-ldpi/ic_launcher_background 2.png
./testapp/build/generated/res/pngs/debug/drawable-anydpi-v21/ic_launcher_background 2.xml
./testapp/build/generated/res/pngs/debug/drawable-mdpi/ic_launcher_background 2.png
./testapp/build/generated/res/pngs/debug/drawable-xxxhdpi/ic_launcher_background 2.png
./testapp/build/generated/source/buildConfig/debug/org/efalk/testapp/BuildConfig 2.java
./testapp/build/intermediates/symbol_list_with_package_name/debug/package-aware-r 2.txt
...
这些看起来像 iCloud 在同步期间无法解决文件版本之间的差异时生成的文件类型,而我的工作目录 存储在 iCloud 中($HOME/Documents/Android/ ) 但我没有做任何会导致文件不同步的事情。
这导致我的构建失败并抱怨“BuildConfig 2.java”。
除了将我的项目移出 iCloud 之外,我应该做些什么吗?
【问题讨论】:
-
我以前从未见过这种情况,但我最近确实遇到了描述类似行为的this question。
标签: android-studio icloud