How to compile c++ with VisualStudio?

When i tap the build button i get this message:

1>------ Build started: Project: MyProject, Configuration: Android_Development_Editor Win32 ------
1>  Android is not a supported platform for MyProjectEditor. Valid platforms are Win64, Mac, Linux.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I have installed NVIDIA NSight plugin. Solution Configurations is set to DebugGame Editor, Solution platforms is set to Android. I am runing the default first person shooter c++ project with no additional added code.

Hello,

I am sorry to hear about your problem.
To configure building for Android, please do the following:

  1. Install SDK, NDK, JDK and Ant (for this, please go to Engine\Extras\Android and run tadp-2.0r8-windows.exe);

  2. Run GenerateProjectFiles.bat (located at the root folder of Unreal Engine installation);

  3. Open UE4.sln and build your project with appropriate configurations.

Hope this helped!

Have a great day!

I can compile my project inside UEditor, but can’t compile it in Visual Studio.

Here is what I did to compile android version from Visual Studio with AndroidWorks installed. Start the editor and make sure Android is a selected target platform in project settings. Then close the editor and in windows explorer right click on the project’s *.uproject file and select “Generate Visual Studio Project Files”.

After that start visual studio with Shipping and Tegra-Android platform should compile. With the binary version of UE4 it seems selecting Development or Shipping works but Development Editor does not work.