-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Android Emulator is missing if Android is not the first TargetFramework #29567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the workaround. I've been missing the emulator, too, and I would never have thought of that order. |
Same here |
Same here. Thanks for the workaround! |
Could be a deeper problem indeed, rather a Visual Studio issue. When playing with 2 instances of VS the second one didn't show android run target at all, while first one had it. Closed both, deleted bin obj, opened one new fresh instance: had android run target dissapeared completely. Only a PC reboot helped. Maybe it locked some files inside .vs folder, no idea. |
Thank you so much for finding workaround - this was driving me nuts this morning since the upgrade. |
Seems to be related to VS 17.14.0 Ah thanks - I've been using Rider as a workaround. Another silly regression that makes the toolchain feel even more wobbly - to be fair this may not be MAUI related, more like VS itself? Possibly related; we've also noticed that archiving an Android app just runs indefinitely now and have had to resort to the command line. |
Yep, archiving Android inside VS is broken for like half a year for me now, using command line only for that. But doubt it's related to this bug, sorry for offtopic. |
Same here. Thanks for the workaround! |
Uh oh!
There was an error while loading. Please reload this page.
Description
Android Emulator is missing from the launch options.
This seems to have only started happening after the most recent Visual Studio update.
See below for full Visual Studio version info:
VisualStudio_VersionInfo.txt
The only thing that changed between when Android Emulator is there, and now is that I updated Visual Studio. event went back to old commits to double check.
I determined the cause is this:
<TargetFrameworks>net9.0-maccatalyst;net9.0-ios;net9.0-android</TargetFrameworks>
In my project, the
<TargetFramework>
lists android as the last entry.When creating MAUI projects by default, Android is always the first item.
Simply by changing it so Android is the first item, the problem is fixed (after restarting Visual Studio)
Steps to Reproduce
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
to:
<TargetFrameworks>net9.0-ios;net9.0-android;net9.0-maccatalyst</TargetFrameworks>
Link to public reproduction project repository
No response
Version with bug
9.0.50 SR5
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
I just re-arrange the Target Frameworks so Android is the first item, and it's working fine. But this has to point to a bug recently introduced which could be indicative of a deeper issue.
Relevant log output
The text was updated successfully, but these errors were encountered: