In this tutorial, I am going to explain the error I faced while deploying the APK file to the device.
The error statement is shown below.
Package name: io.ionic.starter Error: adb: Command failed with exit code 1 Error output: Package io.ionic.starter signatures do not match the previously installed version; ignoring!
The error is caused due to the package name. Duplicate package name. When working with Ionic 2, it will create a unique package name for each project. It will look like below.
But Ionic 3 does not generate unique package name. That's why it throws the above error. You will face this error when you are deploying the second Ionic 3 APK. The first time it won't throw this error. Why because of the package name, io.ionic.starter is unique for the first time.
So change the package name to solve this error.
Go to the config.xml file. It looks like below.
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
Change the id value like below.
<widget id="io.ionic.starter120" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
That's all. Now you can deploy the APK without any error.
Please note. You can give your desired id in the above code.
In this tutorial, you learned, how to solve the deployment error, if it had the same package name in the Ionic 3 project. And you will face this error when you deploy your second Ionic 3 app, not the first Ionic 3 app.