I recently discussed this bug while studying my way around AS.
I could see that the error occurred after starting aaptduring the :app:processDebugResourcesgradle task .
The gradle window is accessible from View → Tool Windows → Gradle, where I see a list of all these tasks, which are supposedly in the Android Build plugin. Is there any way to view these tasks from AS? Could I access the source code for the plugin somewhere? There are no useful options in the context menu, except for Open Gradle configwhich is grayed out.

source
share