Error – Android resource linking failed (AAPT2 27.0.3 Daemon #0)

Had exactly the same problem. Solved it by doing the following: Searching for and replacing with in the platform/android directory.

Also I had to add the following code to the platforms/android/app/build.gradle and platforms/android/build.gradle files:

configurations.all {
resolutionStrategy {
    force ''

Edited to answer “Where is this setting ?” …

The setting will probably(in this case) be in one of your plugin’s .gradle file in the platform/android/ directory, for example in my case it was the starter-barcodescanner plugin so just go through all your plugins .gradle files :

Double check the platforms/android/build.gradle file.

Hope this helps.

Leave a Comment