Error during ionic build

Hi, I’m trying to build the apk but I got this:
Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

Thanks in advance

I’m not sure but maybe you updated your Android Studio or cordova-android to 6.4.0 or higher. Try with 6.3.0 and do a fresh install and build again.

I’m using cordova-android 7.0, btw I’ll try update/ reinstall android studio;

Try downgrading to cordova-android 6.3.0, thats the problem

Or upgrade to the most recent version that has all the bug fixes and support the newest Android versions: (Cordova Android currently is 7.1.0)

(Post your ionic info output if you want more help debugging this please)

cli packages: (C:\Users\Kayn\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 1.3.12
Cordova Platforms  : android 7.0.0
Ionic Framework    : ionic-angular 3.2.1


Node : v6.11.1
npm  : 3.10.10
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set


backend : pro

The weird thing is before I update Angularfire and firebase it works well… and the problem just happens when I try to build or run (ionic serve still working)