问题描述
我更新了 Android Studio 并开始收到此错误.我没有使用 gradle 的经验,因此似乎无法弄清楚可能出了什么问题.
I updated Android Studio and started getting this error. I have no experience with gradle and as such can't seem to figure out what could be going wrong.
这是完整的错误.
Gradle:任务 ':project:mergeDebugResources' 执行失败.无法在任务 ':project:mergeDebugResources'
推荐答案
所以在阅读了 gradle 之后,我尝试了这个命令 'gradlew compileDebug --stacktrace' 以便查看更详细的错误.事实证明,问题实际上是一个重复的资源问题,而 gradle 只是给了我一个一般性错误.
So after reading up on gradle, I tried this command 'gradlew compileDebug --stacktrace' so as to see a more detailed error. It turns out the problem was actually a duplicate resource issue and gradle was just giving me a generic error.
这篇关于Gradle 错误 - 无法在任务 ':project:mergeDebugResources' 上调用 IncrementalTask.taskAction()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!