no target device found problem solved

In the process of developing apps with Android Studio, I believe everyone has encountered this problem. However, I have read some answers on the Internet and failed to solve the problem. Therefore, I have checked again myself.
Start by selecting Run from the Top navigation bar of Android Studio, as shown in the figure

Then open Edit Configurations… , the following options appear, as shown in the figure

Select the first one here

And then at this point, run the APP, click Run, and the following one will appear, as shown in the figure

Congratulations, now your virtual machine, or real machine, is out!!
If this interface does not come out, you can choose to restart the simulator or re-plug the UB real machine, and it will come out. Thank you for watching. I hope it helped you

Read More: