I’m getting an “inconsistent cerficates” error when I try to run my ionic app on my Nexus 7 (Running Lollipop 5.0.2) using the following command:
ionic run --device android
The build goes smoothly until
Installing app on device…
/Users/username/htdocs/chationic/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: pkg: /data/local/tmp/MainActivity-debug.apk Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] ERROR running one or more of the platforms: Error: /Users/username/htdocs/chationic/platforms/android/cordova/run: Command failed with exit code 8 You may not have the required environment or OS to run this project
Everything seem to work on my Nexus 5 that has Lollipop 5.1
I do have installed the platform sdk 21 (5.0.1) and 22 (5.1.1)
Any suggestion would be extremely appreciated. Thanks.