I am developing a Wifi Direct P2P App with Android Studio on Mac. I followed the guide for Wifi Direct P2P on Android Developers and watched YouTube videos for further explanation. The problem is, that both AVDs don’t recognise each other. After a lot of troubleshooting and no progress I found this issue which is very similar to my problem. I tried running the sample code provided in the answer but the AVDs still don’t recognise each other.
I also tried going in to the Wifi Direct Settings and they still don’t recognise each other.
And I tried to use adb suggested in this issue to pair the device over Wifi Direct (even tho I have no idea what I am doing at this point), which also didn’t work at the end.
As I am a beginner to Android App Development I would appreciate any help.
If something is still missing I can submit it later.