Create Android App by using Delphi XE5

File>New>Firemonkey Mobile Application

When you click Run, if you get the error

Invalid PLATFORM variable “BWS”. PLATFORM must be one of the following: “Win32”, “Win64”, “Android”, “iOSSimulator”, “iOSDevice”, or “OSX32”. If PLATFORM is defined by your system’s environment, it must be overridden in the RAD Studio IDE or passed explicitly on the command line to MSBuild; e.g., /p:Platform=Win32.

you need to delete the entry PLATFORM from Windows Environment Variables.

Open Android SDK Manager

Tools>Manage AVDs

Edit rsxe5_android

2048mb SD Card

On Hardware, click New.

Select GPU Emulation.

Change to Yes.

Click Edit AVD.

Click Start.

After all these steps, we can create APK files.