How to create and emulate an Android App with VSCode or MSBuild.exe?

Manda Rajo 141 Reputation points
2022-11-25T07:29:10.277+00:00

I downloaded Visual Studio Build Tools 2019 and I use VSCode as a code editor and I installed the Mobile Development, then I can open the android emulator.

My questions:

  • How to create a template of Android application (C++) with MSBuild.exe? I tried to find an Android Hello World example (GitHub) from the internet but very difficult. The reason I ask is I don't know how to start without example but the Android Emulator is successfully installed.
  • Is there a VSCode extension of Android Emulator (Visual Studio, but not Android Studio)? Because I could successfully install MSBuild.exe with Android Emulator.

I used Android Studio in the past and I could create an Android Native C++, but the problem is when I reinstall everything then it suddenly impossible to make download with Android Studio during installation, same reason why I only use MSBuild.exe which is very easy to download by using of VSCode, I cannot use Visual Studio 2019 editor which is very hard to download.

Developer technologies | C++
Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2022-11-25T12:03:17.097+00:00

    Hello @Manda Rajo ,

    Welcome to Microsoft Q&A forum. You cannot use MSBuild.exe to create a template of Android application, as MSBuild.exe is used to build projects and solutions(not for creating or…). You can find MSBuild.exe command lines here: MSBuild command-line reference. Visual Studio Build Tools are also for building Visual Studio projects. You may need to use some editors to create and develop Android application.

    Since VS Code(different from VS IDE) is currently not supported in Microsoft Q&A forums, I suggest you post this question on Stack Overflow – visual studio code for better help(VS Code technical support).

    Sincerely,
    Tianyu

    1 person found this answer helpful.
    0 comments No comments

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.