Building with Cordova - PART 02 - Build an Android App

1
  • 18 favourites

Index

Stats

9,820 visits, 41,111 views

Translations

This tutorial hasn't been translated.

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Step 8 - Build the APK!

8.1 - You must close the console window and open a new one for the ANDROID_HOME variable to take effect. Now go to the command line window, type the following to build the APK file and press Enter:

"cordova build --release --device android"

8.2 - Wait for the build to be completed. When it's done, open the folder below in Windows Explorer and take a look at our compiled game:

"C:\MyCordovaProject\platforms\android\build\outputs\apk"

You will find two files: one is for ARM devices and the other one for x86 devices.

I won't go into detail about what each one means but we will want the ARM apk file to test it on our smartphone. We only need one.

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!