My ionic project working nicely in command: ionic lab but when I execute "ionic cordova run" in terminal for build this app in android I am having the following error. Error: Failed to install apk to device: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package io.ionic.starter signatures do not match the previously installed version; ignoring!
Delete all the previous ionic apps from your android phone. Then run the command
ionic run android
or
ionic run android --device
Hope it will solve your issue
When you previously installed any app with default package name given by ionic and trying to install another app with the same default package name, it will throw this error.
In config.xml file, change package name(id attribute of widget tag) from io.ionic.starter to any other package name of your choice(ex: com.example.hello)
This way you can keep all your ionic apps installed.
On android device, go to Settings > Apps
and find your app in listing and open App info
.
Click on the More Icon
and select Uninstall for all users
.
Then run commond ionic cordova run android
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With