All of a sudden I cannot get Gradle to build any projects under Android Studio.
Error:Execution failed for task \':app:processDebugResources\'. com
I've got the same problem. The solution was to move project folder into drive root folder. It looks like my project folder has huge path ("D:\DropBox\Dropbox\Video\Full Stack Web Development\Course 4 - Multiplatform Mobile App Development with Web Technologies\Week 3 - Deploying your App\Exercise 1\ionic\conFusion\"). After moving "Exercise 1" folder to the root of disk D, problem was gone.
Have got the same error in React Native.I upgraded the android sdk version and resulted into this.
Root cause : old version's packager collect resources.
Solution : delete directories like 'drawable-xxxx' (ATTN:no 'v?' postfix) under $(rn_project)\android\app\src\main\re.
Reference :https://github.com/facebook/react-native/issues/5787#issuecomment-236408669
Mostly, this problem cause by wrong resource in xml file, I suggest you return your code before everything is fine. then add your new code step by step and check xml file carefully.
I also faced the same issue and worked for hours on it and finally found out the solution. The drawable file that I referred in my xml was not existed. I removed the code and rebuild the project. It worked. My advice if anyone face such an issue, please look into your res folder.
in my case: I create new cordova project, then this aapt close in android studio, then i just update SDK Build Tools to 23.0.3 latest version. make sure you have installed MinSdkVersion & targetSdkVersion in android default 'sdk/build-tools' folder
Always try to use the latest one for build tools. You have to change the line buildToolsVersion "XX.X.X" in build.gradle file (which generally resides under mobile directory in gradle 2.0) to the latest version : 23.0.2 or 24.0.2 or 25.0.2 (in my case). And then Rebuild Project. If you still have an issue, please try to update the corresponding build tool via Android SDK Manager.