Ionic android build error: Failed to execute aapt"


#1

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


#2

cordova-android@7.0.0?

see workaround of @ChrisHSandN in https://github.com/jeduan/cordova-plugin-facebook4/issues/599


#3

now getting this error

Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex


#4

have you try with cordova-android@6.4.0 then?


#5

hi try

configurations.all {
resolutionStrategy {
force ‘com.android.support:support-v4:27.1.0’
}
}