I made the first version in Mac, I sold my Mac and when I compile with my new pc, I can’t install the application on Android because An existing package by the same name with a conflicting signature is already installed.
I checked that all versions are the same.
I deleted node_modules folder and run npm install. I run ionic platform rm android and ionic platform add android.
I coped the debug.keystore from the Mac on my pc in /.android.
I coped the debug.keystore to platofrm/android and made debug-signing.properties.
The app is in debug, because is for internal company use.
You should place it in maybe
.android, not the project platform android.
I try put debug-signing.properties on .android but didn’t work
It’s debug.keystore file you should replace
Yes, I wrong in the previous response, I put debug.keystore on .android, also I put on plaforms/android and generate the debug-signing.properties too. Also modifed the build.gradle for take the debug sign, but It did not work
Well, I found the problem and the solution.
I read the CERT.RSA in the folder META-INF in the compilation of both computers with the command keytool -printcert -file CERT.RSA, and I saw they use differents Signature Algorithm Name, in the MAC I have SHA256withRSA and in the PC I have SHA1withRSA. I search in Google and I found that JAVA 1.8 since compilation 161 use SHA1withRSA, so I uninstalled the JAVA of my PC and install JAVA 1.8 compiltion 111 and voilà, I could install the apk in the device how has the previous version compiled in the Mac.