Sep 2, 2015

Error running the command ionic build android after adding the Local Notification plugin

After adding the Local Notification plugin to my ionic project running the ionic build android command would result in the following error: Multiple dex files define. The error appears to be due to the fact that the android-support-v4.jar is being included twice. To fix the problem I delete the android-support-v4.jar file in the platforms/android/libs directory.

Error running command ionic run android

I was getting the following error when running the ionic run android command:

ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: pkg: /data/local/tmp/android-debug.apk


I had to uninstall the production version of the app to get it to deploy the development version.