I woke up this morning and I can magically run Android apps on my windows 11 machine.
So I went over, I installed the leaders, windows, insider beta, and I enabled
the windows subsystem for Android.
And yes, I could run Android apps, but more importantly, I could debug
my Android applications from visual studio, Andrew Zuri, or anywhere else.
They're developing Android apps.
Say goodbye.
Because windows subsystem for Android is here.
Hey everyone.
I'm James Montemagno, and I'm back with another video this time talking
about how to debug your application.
From wherever you're developing Android apps into the brand new
windows, subsystem for Android.
That's right.
You can get rid of all those emulators and all the things you don't need a device.
You just need a windows, 11 machine running the windows subsystem for Android.
W S a.
So let me show you how to get started and enable this awesome piece of.
First thing's first is you'll need to install and be on the windows.
Insider build at least a currently right now.
Um, the beta channel for enabling the windows subsystem for him.
Now, once you've done, um, and installed this I'm, you'll be ready to go, but let
me show you what this looks like here.
You can click get, and I'll put a link to that directly.
Or you can search for Android in the Microsoft store and the give you
this big Amazon app store preview.
That'll do the same stuff at installs all the same things.
And once you've done that, you have to reboot your machine,
but you get this app here, which is the windows subsystem, Fran.
Now a few things that you'll want to do is you have a file,
you know, file application.
And that's a file app.
You have a screen reader, then you have this subsystem resources.
And I said, it's a continuous, since I want to use it in developer mode
is I want it to be on all the time.
And then you'll want to turn on developer mode and we'll
come back to that in a second.
But once you've turned this on and it's on, you can come into the Amazon
app store, you can install and open things like here, I'm gonna open.
Let's say the Alaska app, I can open up the Kindle application and
I have Android apps are running.
Right.
I have a book that I was reading earlier.
I can snap it, like can snap the app, this app over there.
And I'm good to go.
I'm running Android apps on windows and they're really snappy
and really good look at that.
Just really super good.
That's mind blowing, but back to the portal over here, continuous mode,
keep it on always and then develop.
When you say managed developer mode here, what's nice.
Is that they've already enabled USB debugging.
It's already on.
It's already good to go.
So what's nice is that you get a local loop back port here.
1, 2 7 0 0 1.
Five to six and an IP address as well.
Now you should be able to connect via ADB through this.
You might have to open up some ports, maybe TCP.
I'm not sure I was having problems with it locally.
Maybe I just need to reboot, but you can also connect to via the IP address.
So check this out here.
You can go here and I'm just going to do the ADB connect.
As long as you have ADB there, I'll do 1, 2, 7 oh dot oh, dot one.
And then five a by two, six.
When I ran this, um, I got this air, which is no connection could be made.
Others says it worked just fine.
Maybe check your TCP IP.
But what I did is I just did ADB connect and I did a 1 7 2 2
2 1 6 1 dot two, two, and boom.
I'm connected right there.
So either of those should work for you.
See which one works for you?
I didn't do anything else.
This is a clean machine.
I didn't open up any ports or anything like that.
And I'm connecting.
Now I'm just going to open a visual studio and I'm building a Don and Maui
application, but you can open up, you know, Android studio, wherever debugging,
and it should just show up right there.
I'm just gonna hit debug.
And that's going to go ahead and compile up my application, and
then it's going to deploy onto the Microsoft windows sub-system for
Android so they can see it right there.
It's deploying right now.
It's funneling the build and everything on it.
Deploy it, which is kind of magical at the end of the day.
And it's signing and just deploying a, an app.
Here we go.
It's amazing.
Boom.
Look at this.
Here's my entire application fully running, uh, on, on windows 11
inside the subsystem for Android.
And look at this.
Just amazing.
I love it.
So there you have it.
You can set this up super easy.
You just connect via ADB.
Um, you can do it ideally with the 1, 2 7 0 0 1 or the IP address, and it just
shows up as a device because it's ADB.
Cause it's there.
I mean there, you have it.
It is literally that easy to start debugging your Android applications
on windows 11 with the subsystem.
I mean, it's there, you can connect and you can debug.
I love it.
If you have any questions, leave them below.
Don't forget to like smash that subscribe and bring that notification ballot.
Super appreciate it.
If you want more awesome dead videos like this.
Thanks for watching.