I got this error while trying to build an Android app:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
Most other solutions I found were related to an image in the project being too large however, that didn't work for me as all my images had sizes below 50kb.
I found that this error occurs when additional modules are created in the project and linked to other app modules (using implementation project
) but the plugin in the module's build.gradle file is set to 'com.android.application'
instead of 'com.android.library'
.
I found this solution in an answer to a different issue here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With