Hello, I am having trouble debugging my App on an Android device via Mono/VS on a PC.
- Device: Samsung Galaxy S6 (SM-G920F, Android 7.0)
- The device is properly connected to adb via WiFi, logcat works flawlessly.
- Firewall and antivirus disabled on both, Windows PC and Smartphone.
- The smartphone is in developer mode with USB debugging enabled and my app is selected as the debug target in the developer menu.
- I verified multicast is working properly in my network.
- PC and smartphone can reach each other (ping)
- The device properly shows up in the IDEs Attach Debugger menu.
- The build is a development build with script debugging enabled, device filter FAT, runtime .net 3.5 equivalent, backend mono
When trying to attach the debugger, the following happens:
-
Mono: Error-message “Could not connect to the debugger”. When attaching a debugger to Mono, the following Exception pops up: System.Net.Sockets.SocketException: ‘No connection could be made because the target machine actively refused it 192.168.1.136:56921’
-
VS 2017: Nothing happens. When attaching a debugger to VS, the following is printed to the output:
Exception : Unable to start program ‘Unity’. Operation not supported. Unknown error: 0x80004005.
Please help, I already invested a lot of time into something that should be working from the start - this makes Unity unusable for me.