【问题标题】:Android Studio generating hundreds of duplicate " 2" filesAndroid Studio 生成数百个重复的“2”文件
【发布时间】: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


【解决方案1】:

将我的开发文件从 iCloud 中移出对我有用。

【讨论】:

  • 我想这就是问题所在。愚蠢的 Android Studio。
猜你喜欢
  • 2020-02-10
  • 1970-01-01
  • 2019-04-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-08-15
  • 1970-01-01
  • 2015-12-03
相关资源
最近更新 更多