Ionic android build error: Failed to execute aapt"

When i run ionic cordova build android it gives this error

"Execution failed for task ‘:app:processDebugResources’.

Failed to execute aapt"

before i added the facebook4 plugin it built successfully, but now it’s giving me that error…

please what can i do ? i’m kinda new to ionic


see workaround of @ChrisHSandN in

now getting this error

Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: Unable to merge dex

have you try with cordova-android@6.4.0 then?

hi try

configurations.all {
resolutionStrategy {
force ‘’

1 Like