Solve the problem that uniapp runs on the mobile phone base

Common problems: (The following problems often occur after updating the editor version)

Question 1. Even though it has been connected to the mobile phone, the device cannot be detected

 

Question 2. Failed to synchronize resources, not authorized to synchronize resources

 

 Summary of solutions

Problem 1 solution:

        Method 1: Go to the plugins\launcher\tools\adbs folder in the HBuilderX installation directory, replace it with the files in 1..0.31, restart the editor or restart the computer, and reconnect the phone to detect the device.

 

        Method 2: Simple and rude is also the most effective, which is to uninstall HBuilderX and re-download the latest version of HBuilderX. ( Very effective, but cumbersome )

Problem 2 solution:

Summarize the reason for this problem: due to the version update, the previous version of the dock in the phone is inconsistent with the version running on the computer. Although the dock was manually deleted on the phone, it was not completely deleted. resulting in this problem.

Method: Operate the mobile phone through the terminal adb command.

adb command: commonly used adb command to organize_thundersoft230's blog-CSDN blog_adb command

1. First run the npm terminal as an administrator and enter HBuilderX\plugins\launcher\tools\adbs under the HBuilderX installation directory

2. Next, execute the adb shell pm list package -3 command to find the app information installed on the mobile phone

3. Finally execute the adb uninstall io.dcloud.HBuilder command to kill the HBuilder process and you're done

Finally look at the effect

 

 

Guess you like

Origin blog.csdn.net/weixin_53339757/article/details/131698888