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
Error:(140) Attribute "srcCompat" has already been defined
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'' finished with non-zero exit value 1
app:srcCompat
is an xml attribute usually applied to views likeImageView
.Maybe you declared that attribute twice in the same view.
I had the same problem but I found a workable solution. Here's the link. Hopefully it sorts you out...
I had this issue as well.
In my case, the problem was that the support libraries in my gradle file's dependency section should all be the same version.
More info here: Gradle error "Attribute "xxx" has already been defined" in Android Studio
Answer for Alan_UK's request - I cant post the full content because it is too long. I only post the content which includes the dual attributes