Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Gradle build error "AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon."

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.

like image 496
Schnelldev Avatar asked Dec 06 '22 08:12

Schnelldev


1 Answers

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.

like image 119
Schnelldev Avatar answered Dec 21 '22 09:12

Schnelldev