android studio was getting build error while build execution with following:
Error:Execution failed for task \':app:transformDexArchiveWithExternalLi
This is what works for me. clean prepare and run.
cordova clean android; ionic cordova prepare andriod; ionic cordova run andriod;
hope it helps.