Building the official Unity Roguelike 2D tutorial for Android 4.2.2. Bugs ensue

Hi everybody,

I’m dipping my toe into Android deployment for Unity. Having no prior experience, I figured the best place to start was with an official Unity tutorial project. I grabbed the 2D Roguelike tutorial, which is excellent, and worked through it from start to finish. So far, so good.

Then, I started going through the steps of installing the Java Development Kit and Android SDK to my computer. I grabbed jdk1.8.0_65 and installed it, then I got the latest version of the Android SDK and installed it. Using the Android SDK Manager, I installed the following modules:

Android SDK Tools 24.4.1
Android SDK Platform-tools 23.1
Android SDK Build-tools 23.0.2
Android 6.0 (API 23)
Android Support Library 23.1.1
Google USB Driver 11

I then followed the steps to point Unity to these SDKs and their respective folders. All is well.

Then I installed Unity Remote on my device, which is an ASUS Memo Pad running Android 4.2.2 Jelly Bean. I can run the project in Unity and it shows up on my device, and touch inputs work fine.

The problem comes when I try to build the project and run it on the device. It builds fine. It runs. But there are weird bugs that don’t seem to make any sense. Tiles appear in odd locations, the level progression doesn’t work right, and the character is killed automatically on level 4. None of these problems happen when I run the project in the editor and use Unity Remote as an input device. The problems only manifest themselves when I actually build to the target device.

I’m baffled at this point, so I made a video showing all of the steps that lead up to the problem. Any help is welcome and appreciated. Thanks very much!

Your video is private.

Whoops, thanks. I changed it to Unlisted. You should be able to view it now.

Hmm, no responses yet. I experimented with creating a project from scratch, and it seems to run just fine on my Android device. The build works as expected. Not sure why that project works and the tutorial doesn’t. Again, any insight is appreciated.

This issue has been confirmed by the Unity staff and is being investigated. Seems related to the SceneManager API. More details here: http://forum.unity3d.com/threads/2d-roguelike-q-a.297180/page-12

Hey there, not related to your problem but how did you managed to scale the game dimensions to your device?