How HBuilderX creates uni-app project to run on mobile phone

When you want to run the app on the mobile phone to see the effect, click the menu bar - run - run to the mobile phone or simulator, it is found that it is gray and cannot be clicked, and the device is not found. However, it is clear that the USB data cable has been connected to the mobile phone and the computer. .

Here is the solution:

We need to open [Developer Mode] in the settings of the phone,
mine is in [Accessibility],
insert image description here
and then open [Developer Options] and [USB Debugging], both of which must be turned on!
insert image description here
Then you can connect and debug. .

If you really can't find [Developer Options], you can enable it in [About Phone] at the bottom of the settings.
insert image description here

Then wait a moment, you can select the mobile phone to view
insert image description here
it. The page I run is as follows, and you're done!
insert image description here

Guess you like

Origin blog.csdn.net/changyana/article/details/124092701