Always use the simulator, the slag memory is not affordable, and the simulator version is mostly stopped at 4.4, unable to reflect the Android 5.0, 6.0 version features, so decided to use the plug-in Android Studio to achieve real-computer wireless debugging.
The steps are as follows:
1. Turn on the USB debug mode: Connect the phone to the computer via USB cable, turn on the USB debugging, the steps are as follows: (Take Meizu PRO6, flyme5.2.3.0a for example)
Connect your phone to your computer---> Settings---> Accessibility---> Developer options--->USB debugging (turn this option on)
2. Install the ADB WiFi plugin: Open settings--->plugins in android Studio, search for and add adb WiFi and restart Android Studio to complete the plugin installation process;
3. Development debug mode set to USB Device
<1> Click on the app--->edit configurations in the Android Studio interface ... (as shown),
<2> after performing the above steps into the Run/debug configurations interface, set Target to USB Device;
4. Turn on the Infinite debugging function: Make sure the phone opens the USB debug mode, connect it to the computer with the data cable, click ADB USB to WIFI (as shown),
If your Android Studio has a status bar similar to the red box marker in the lower left corner, you can unplug the data cable for debugging.
5. If you use the Wireless Debug phone function next time you turn on Android Studio again, you need to perform the 4th step again.
Limited to my limited ability, the above content is inevitably flawed and flawed, you are welcome to put forward valuable comments or suggestions in the comment area.
Pits record Android Studio uses ADB WiFi plug-in for real-computer wireless debugging