小编Bac*_*ker的帖子

Gradle以非零退出值1结束(ic_launcher.png:错误:重复文件)

我用gradle得到了这个奇怪的错误,请帮助我!

/.../app/build/intermediates/res/debug/drawable-xxhdpi-v4/ic_launcher.png:
    error: Duplicate file
/.../app/build/intermediates/res/debug/drawable-xxhdpi/ic_launcher.png:
    Original is here. The version qualifier may be implied.
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Process 'command '/.../sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1
Run Code Online (Sandbox Code Playgroud)

在它正常运行之前,但是因为我把classpath com.android.tools.build:gradle:1.2.2,这导致我错误

gradle aapt android-resources android-studio aar

75
推荐指数
5
解决办法
7万
查看次数

标签 统计

aapt ×1

aar ×1

android-resources ×1

android-studio ×1

gradle ×1