How to compile c++ with VisualStudio?

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!