How to configure Unity to build Android Game
How to configure Unity to build Android Game
This tutorial is to be an easy way to configure your PC and Android Cellphone to be able to create a mobile game.
- Install on your Android the Unity Remote App
-
You need to enable Developer mode on your Android
If you are using a motorola Android, then you go to settings -> about phone -> Version Number -> tap 7 times and add your pin.
-
Enable USB Debugging
If you are using motorola Android, then go to settings -> system -> advanced -> developer options -> USB Debugging.
-
Download Android Studio
You must install de Android SDK
-
Change Building Settings on Unity
Go to File -> Building Settings -> Android -> Switch Platform If you don’t have Android build installed, you can click on Install with Hub to download.
-
Add Android SDK on Unity
Go to Preferences -> External Tools -> Android SDK -> Browse. If it goes well, Unity will add automaticly. If don’t, then just browse to the Android SDK folder. In later versions of Unity (2020+) it will automaticly add that.
If this error message appears:
Then go to Unity Hub -> Installs -> Add Modules -> Android Build Suport -> Check Android SDK and OpenJDK -> Done. It will install the necessary SDKs for building you Android Game.
-
Add your Device to test
Edit -> Project Settings -> Editor -> Device -> Any Android Device
-
Press play on Unity Editor.
Your game will show on your Android Device.