A few days ago, Microsoft announced that the Windows 11 OS will run Android apps natively with its subsystem for Android, and this got several tech communities online excited. I was definitely excited too when I thought about dumping my android emulator for good. Seriously, in my opinion, this one feature is a game-changer. At the time of writing this article, this feature was only available for US citizens. I’m not in the US, I’m in Europe but I could run this feature and test it. If you are not in the US too, or if you read this in the future, and you want to do android debugging with windows subsystem for Android, this article is for you.
Before you can finally debug your android apps directly on windows, there are a few things to configure.
This is the final step, and it is dead simple. We need to connect our Android instance to ADB. This is just like connecting a real android device to your PC over WIFI. You’ll be able to target it in your IDE as any other device.
adb connect 172.23.214.190
With the windows subsystem for Android, you can increase your productivity just by using it as a replacement for the Android emulator as shown above. You can also run existing Android apps. This is not yet officially released to everybody so, there will be ameliorations coming up soon. I have tested some production applications made with Xamarin, and it is not yet perfect. I had a few issues with native libraries referenced by the application. I guess these issues are due to the fact that this feature is still in the early preview phase.
Want to create a skeleton loader with Xamarin Forms? Follow this tutorial.