Skip to the content.

Building and running the app

In this part, you will learn how to build an apk file and run it on your Android device.

1. Connect your Android Device

  1. Connect your Android device to your computer’s USB port.
    • If your computer is not recognizing your phone, make sure you have the necessary device drivers. You can also swipe down your phone screen and see if there is an option that says Charging this device via USB. If you see this option, tap on it and select the File Transfer option.
  2. Enable USB Debugging.
    • Go to your phone’s Settings > About Phone tap on Build Number 7 times. Go back to the Setting’s main page > Developer Options and enable USB debugging.

2. Build and run the project

  1. In the Unity Editor click on File > Build Settings.

Screenshot 30

  1. Click on the Refresh button.
  2. Select your device or select the Default device option.

Screenshot 31

  1. You can check the Development Build if you are not going to publish the apk file.
  2. Click on the Build And Run button.
  3. Create a New folder and name it Build.

Screenshot 32

  1. Open the folder.
  2. Enter the File name.
  3. Click on the Save button.

Screenshot 33

  1. The app will run on your device after some moments.

 

< Manipulating objects - Home >