Scenario: Because the version uses the file address of Jenkins, the mobile phone cannot download the apk package, so the test package can only be installed through adb. The installed mobile phone model is Android: oppo-a57 Android system version 6.0.1.
The first is to punch in the command window of the Windows system with win+r, and enter adb
The installation is successful as shown above.
Confirm that the adb installation is successful, enter adb devices
The successful identification of the mobile phone model is shown in the picture above.
Then enter
For example: adb install E:\***-***-2.0.0.1.apk
At this point, there will be an error message: The device cannot be found and cannot be installed.
1: Check whether the developer mode of the mobile phone is turned on. Different mobile phones have different opening methods. Baidu
2: Enter the installation command again after opening
This is because usb debugging is not turned on. Such as the usb debugging at the bottom of the figure in step 1. Enter again after start
Note: During installation, a pop-up window will appear asking whether to allow debugging, click OK.
Then confirm the installation is complete.
There is also a bloody situation, the data cable is not in good contact with the usb interface, it can be used when inputting a command, but the next command will be invalid, pay attention to the investigation.