错误:(144) 属性“srcCompat"已经定义 [英] Error:(144) Attribute "srcCompat" has already been defined

查看:31
本文介绍了错误:(144) 属性“srcCompat"已经定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个可以发布推文的应用程序,您可以使用它查看用户时间线和搜索时间线.我用 TwitterAPI 和 fabric.io 做到了这一点.如果我想生成一个 APK 文件或同步 Gradle 文件,我会收到以下错误:

I've coded an application which can post tweets and you can see user timelines and search timelines with it. I did that with the TwitterAPI and fabric.io. And if I want to generate an APK file or sync the Gradle file, I get these errors:

C:\Users\Alexander\AndroidStudioProjects\FacebookPlus\app\build\intermediates\res\merged\debug\values\values.xml

C:\Users\Alexander\AndroidStudioProjects\FacebookPlus\app\build\intermediates\res\merged\debug\values\values.xml

错误:(140) 属性srcCompat"已经定义

Error:(140) Attribute "srcCompat" has already been defined

错误:任务:app:processDebugResources"的执行失败.

Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Alexander\AppData\Local\Android\sdk1\build-tools\23.0.2\aapt.exe'' 以非零退出值 1 结束

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Alexander\AppData\Local\Android\sdk1\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1

推荐答案

我遇到了同样的问题,但我找到了一个可行的解决方案.这是链接.希望它能帮到你...

I had the same problem but I found a workable solution. Here's the link. Hopefully it sorts you out...

这篇关于错误:(144) 属性“srcCompat"已经定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆