Building an APK file - POINT-VR/POINT-VR-Chapter-1 GitHub Wiki
Instructions for building the APK file
General Building Procedure
- If this project was kept open in the editor since the last build, you may skip to Step 5
- In the Build Settings, open Player Settings
- Open Publishing Settings
- Put in the keystore password (twice) [dm Sonali for the password]
- Open Build Settings
- Select Build
- Ensure that you are placing your build in the Builds folder of the project folder
If Building for the First Time
- Open Unity Hub
- Go to Installs
- Go to version 2019.4.20f1, the version used for our project
- Add modules
- Make sure that Android Build Support is checked
- Expand the dropdown under Android Build Support
- Ensure that Android SDK & NDK Tools and OpenJDK are checked
- Install these if necessary
- Open the project in the editor
- Open Build Settings (File->Build Settings...)
- Under Platform, select Android
- Click the button on the bottom right of the build window to Switch Platform
- Click the button on the bottom left of the build window to open Player Settings
- In the Android tab, go to Other Settings
- Ensure the Minimum API Level is set to Android 7.0 'Nougat' (API Level 24)
- Ensure the Target API Level is set to Automatic (highest installed)
- Close Other Settings and open Publishing Settings
- Ensure the custom keystore is set to the path: ProjectSettings/pointvr.keystore
- Enter the password (it is pinned in the #group1 channel on our discord)
- Ensure the project key alias is set to pointvr
- Enter the password again (same one)
- In the project settings (Edit->Project Settings...), open the XR Plug-In Management menu
- In the Android tab, ensure that Oculus is enabled
- Reopen the build settings
- Set the Run Device to All compatible devices
- Select Build
- Ensure that you are placing your build in the Builds folder of the project folder
Side Note: The Product Name in the Player Settings Menu sets the name of the app you will see inside the headset.