How can I use Visual Studio 2022 to generate a simple Android app?

PeeJay48 0 Reputation points
2024-09-03T03:25:14.46+00:00

I am running Windows 11 and have Microsoft Visual Studio Community 2022 (64-bit) Version 17.11.2. I want to use it to develop a simple Android app using C#. The tutorial I am following tells me to go to the installer, select Modify, then under Workloads choose "Mobile development with .NET". I can't do this because I have no such option, just "Mobile development with C++". It also tells me to choose the "Individual components" tab and select two Emulators, Google Android emulator and a hardware accelerator. These are also missing. How do I rectify this?

Developer technologies .NET .NET MAUI
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-09-03T05:50:46.5066667+00:00

    Hello,

    Please choose .NET Multi-platform App UI development in the VS installer like this tutorial.

    Then you can create a .NET MAUI App in the VS, please follow above tutorial to create your application. Using .NET MAUI, you can develop apps that can run on Android, iOS, macOS, and Windows from a single shared code-base.

    Here are MAUI learning source, you can refer to it.

    If you have some issues when learning MAUI, you can open threads in this site and add .NET MAUI tag

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.