Last Updated on 2021-10-30 by Clay
Recently I migrated my developed Unity game from Windows to Mac OS, but when I connect to my test device and compile the APK file to run, I got the following error message:
adb: failed to install xxx.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.DefaultCompany.com.unity.template.mobile2D signatures do not match previously installed version; ignoring!]
Solution
In the beginning that I found some solution such as backup your project and restart a new project for importing old assets... but this method is not worked for me.
In fact, the error message I encountered is more simple: Package com.DefaultCompany.com.unity.template.mobile2D signatures do not match previously installed version
Simply to put, the signatures of game I developed is different to the previous version with my test device.
Then so-called previous version is the test game file originally created on my test device using Windows computer compile.
So the easiest solution is to just uninstall the test game file on the test device. In this way, the file should be compiled and executed smoothly.