Error during ionic build


#1

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

Thanks in advance


#2

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.


#3

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


#4

Try downgrading to cordova-android 6.3.0, thats the problem


#5

Or upgrade to the most recent version that has all the bug fixes and support the newest Android versions: https://ionic.zone/cordova/update (Cordova Android currently is 7.1.0)

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


#6

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

System:

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

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

#7

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)