Task :processDebugResources Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt
at com.android.builder.core.AndroidBui
possible issue related to this can be with your XML files. I have faced this when I deleted my unnecery xml files.
For remedy from this error in gradle.properties of the module, add this below line:
android.enableAapt2=false
after adding this line, restart the gradle.
and do once clean, rebuild your project.
I made a stupid mistake. In my case, I made the project path too deep. Like this: C:\Users\Administrator\Desktop\Intsig_Android_BCRSDK_AndAS_V1.11.18_20180719\Intsig_Android_BCRScanSDK_AndAS_V1.10.1.20180711\project\as\AS_BcrScanCallerSvn2
Please migrate the project to the correct workspace. Hope this helps someone in future.
If you are getting this error only when you are generating signed Apk . Then the problem might be in one or more of the imported media file format. I have used an image directly from net to studio and was not able to generate sign apk, then found the error .
from Gradle >assembleRelease then got the error in console. see the error log in console image.
Check the latest edited XML file. It is the main Villian
I had once such error, I then checked the last xml file, ther was a line like android:layout_marginTop="."
I changed it to android:layout_marginTop="16dp"
.
That fixed the bug!
style="?android:attr/android:progressBarStyleSmall"
to
style="?android:attr/progressBarStyleSmall"