Unity Android Build

Hi!

So after like 3 hours of having fun with this, I’m documenting what I did - so I don’t forget.

First, DONT use the Unity documentation for this.

https://unity3d.com/learn/tutorials/topics/mobile-touch/building-your-unity-game-android-device-testing

It is for Unity 5.3, is super old and out of date.

Open the build settings
Set the build output to Android
Open Project Settings. If you have the inspector locked nothing will happen...
Dig thru to find the package name.
Change it from com.CompanyName.Project to something meaningful
You may want to set up other things while you are in here like app icon
Run a build
Unity will ask you to save the apk file in a location.
Then it will ask you for JDK 1.8.
If you don’t have it, Unity will download it for you.
Sometimes it looks like Unity is doing nothing at this point. There is no progress bar. Be patient.
Next Unity will ask for Android SDK. Again, Unity will just download it for you.
Cool!  Now you should have an apk file!

Get the APK file on a phone.
There is actually a pretty good SO Answer on how to do this.  I edited the answer to make it easier.

https://stackoverflow.com/questions/9718104/how-to-install-apk-from-pc

So that should do it.


Comments

Popular Posts