If you update an earlier version of the software on android, you will be prompted at the last step of installation: a package with the same name with conflicting signatures has been installed, and then the installation failed.
This is because the signature information of the old version of the software is inconsistent with the new version.
You can uninstall the software and install a new version.
If it can't be uninstalled, it may be because the mobile phone (pad) was built into the mobile phone before it was released, so the software can't be uninstalled.
If this is the case, you can try the "root" system, then uninstall the old version of the software and install it.
If you are a developer, this problem may occur because you use eclipse to automatically publish the old version to the emulator, and eclipse will automatically publish a test signature, which is different from the one you officially packaged.
This problem usually occurs when testing the automatic update function, hehe.
If you want to continue testing automatic updates, the solution is simple. Just manually delete the old version of the software (the version automatically installed by eclipse), and then use adb tools to install the old version and test the new version.
The automatically updated installation code is generally like this:
Intention i = new intention (intention. ACTION _ VIEW);
I . set dataandtype(uri . parse(" file://"+apk file . tostring),
" application/vnd . Android . package-archive ");
m context . start activity(I);
Maybe you are slightly different from this. Don't worry, it's nothing. That's not the problem.
The following is for foreign friends, please forgive my poor English:
For foreigners, please break me:
When you try to install a new version of the software on android, you may receive this message: an existing package with the same name and conflicting signature has been installed!
I relax! Uninstall the old version of software, and then install the new version. In this process, you may need to get "root" permission.
If you are a developer, you may receive this message because the old version was installed by eclipse. Eclipse uses the debug keystore signature. I guess you tried to test your automatic update function. You can uninstall it in the setup tool (eclipse automatic package version). And install the old version of ADB.exe (your signature package) before testing the automatic update function.
Automatic update function code is always like this:
Intention i = new intention (intention. ACTION _ VIEW);
I . set dataandtype(uri . parse(" file://"+apk file . tostring),
" application/vnd . Android . package-archive ");
m context . start activity(I);
If you don't code like this, don't worry, it doesn't matter, the problem is not there.
:)