I'm using Visual Studio 2017 with a OnePlus.
In order get debugging working I did the following.
- Go to Settings > About phone and tap Build Number repeatedly until developer mode is enabled
- Go into Settings > Developer options and turn USB debugging ON
- Connect you phone to your PC via USB. I had to plug my phone into my PC's onboard USB port, not my USB hub as this did not work
- You should be prompted to trust your PC (trust it)
- Fire up Visual Studio
- Open your solution and your device should now be available.
Side note: I have noticed that sometimes it also depends on the cable you use. If you still have no luck, perhaps try another cable.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…