Use the adb command to install the Android apk package

Although there are many tutorials on installing Android packages with adb on the Internet, after trying it myself, I feel that what I wrote down is my own harvest.

1. Download and install the adb tool

    下载地址有很多,这里是我下载的地址:https://pan.baidu.com/s/1mgGkNZM,下载文件比较齐全。

    下载后是个压缩包,解压后一共有5个文件,如下图:这里我都是解压到当前文件夹了

insert image description here
Because there is a cmd in the installation package, the steps of opening cmd during operation and then opening adb in cmd are omitted. When you want to use the adb tool, just click cmd.exe directly.

The installation method summarized by a netizen as follows is very comprehensive. There are several types: https://sspai.com/post/23509. I think this is the easiest one.

2. Check whether the installation is successful. Directly open cmd.exe in the installation path and enter adb version. If the following version number appears, the
installation is successful. Turn on the USB debugging mode, which may be different for different mobile phones, generally in: Settings - "Developer Options -" USB debugging and USB installation, USB debugging (security settings), these options are all turned on;
insert image description here

2. After opening, enter adb devices in the cmd window, and the device just connected will appear.
insert image description here
I bypassed this problem and used the command to force overwrite installation to install again, and the installation was successful.

Override the installation command line: adb install -r apk path, as shown in the figure below:
insert image description here
sometimes this error: cannot connect to daemon solution will appear
, see this link for details
https://blog.csdn.net/ipinki1218/article/details/80704806

Guess you like

Origin blog.csdn.net/weixin_45664217/article/details/120484794
Recommended