Execution failed for task ':processDebugResources' when build in android


I have a problem when I was attempting to do:

ionic cordova build android



Total time: 1.405 secs
Error: /Users/upcnet/Develop/ionic/appToYouV4/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/upcnet/Develop/ionic/appToYouV4/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:40: AAPT: No resource identifier found for attribute 'appComponentFactory' in package 'android'
/Users/upcnet/Develop/ionic/appToYouV4/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:40: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

As a configuration I have:


   Ionic CLI          : 5.2.1 (/Users/upcnet/.nvm/versions/node/v10.16.0/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.5.2
   @ionic/app-scripts : 1.3.12


   Cordova CLI       : 6.5.0
   Cordova Platforms : android 6.4.0
   Cordova Plugins   : no whitelisted plugins (11 plugins total)


   cordova-res : 0.5.2 
   native-run  : 0.2.6 (update available: 0.2.7)


   Android SDK Tools : 26.1.1 (/Users/upcnet/Library/Android/sdk/)
   ios-deploy        : 1.9.4
   NodeJS            : v10.16.0 (/Users/upcnet/.nvm/versions/node/v10.16.0/bin/node)
   npm               : 6.9.2
   OS                : macOS Mojave
   Xcode             : Xcode 10.2.1 Build version 10E1001

And the plugins I’ve installed:

> cordova plugin ls
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-splashscreen 4.1.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4 "Cordova WKWebView Engine"
cordova-plugin-x-socialsharing 5.4.7 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"

So… is it impossible for me to solve this problem. So anyone could help me?

1 Like