[The 31st part of the Android tutorial series] When installing apk through the adb install command, it prompts signatures do not match previously installed version

This is the 31st part of the [Android Tutorial Series]. If you find it useful, please pay attention to the column.

A small problem encountered, make a record.

One: problem description

When using the adb installcommand to install apk, the content of the prompt is as follows The
insert image description here
main prompt information is signatures do not match previously installed version, the translated meaning is 签名与之前安装的版本不匹配.

Two: the cause of the problem

The debug version of the apk application has been installed on the current real machine, and the debug version has not been signed.

Three: Solutions

  • Solution 1: Uninstall the apk of the debug version installed on the current phone.
  • Option 2: Sign the apk in debug mode.

Here I uninstall the debug version of the apk through abd uninstall 包名the method, as shown in the figure below,
insert image description here
and then install it again, as shown in the figure below. Has
insert image description here
your problem been solved? Welcome to leave a message in the comment area.

Give someone a rose, and there is a lingering fragrance in your hand. If you think the article is good, I hope you can give a one-click three-link, thank you.


concluding remarks

Technology is accumulated little by little, and God cannot be achieved in a day. Staying still is going backwards, so make a little bit of progress every day.

Finally, a motto is attached: "I am eager to learn, but humble as a fool", and I hope to encourage each other.

Guess you like

Origin blog.csdn.net/qq_42351033/article/details/122450733