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],
and then open [Developer Options] and [USB Debugging], both of which must be turned on!
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.
Then wait a moment, you can select the mobile phone to view
it. The page I run is as follows, and you're done!