All of a sudden I cannot get Gradle to build any projects under Android Studio.
Error:Execution failed for task \':app:processDebugResources\'. com
In my case I was using wrong string resource id in a layout file. After I fixed it and rebuilded the project the error was gone. Hope this helps!
I also have same error : "aapt-exe-finished-with-non-zero-exit-value-1"
In my code there was an mistake in layout xml file about drawable file name, after correct it. Its working for me.
see gradle console output,
in my case - :app:processDemoReleaseResources FAILED
it was cyrillic file name in asset folder
Upgrade your buildToolsVersion to latest and make sure your appcompactv7 import matches the sdk buildtoolversion. In my case it was buildToolsVersion '26.0.0'. Upgrading to it solved my issue.
Android studio only accepts images within a certain file name frame
Invalid file name: must contain only [a-z0-9_.]
I had a file by Korean. so I delete then It's worked!!!
In my case, due to duplicated attributes in xml causes this issue. For example,
<TextView
android:id="@+id/tv1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello"
android:text="Hello" />