Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by thesleeve · Jan 13, 2016 at 12:46 PM · androidtutorialbugsbuild and run

Simple project on Android: Builds correctly, runs on device, but it is very buggy.

Hi everybody,

TL,DR: Trying to build official Unity Tutorial project to Android. Project runs fine on computer. Runs fine on Unity Remote. When building to Android device, it runs, but is very buggy. This video provides more details: https://youtu.be/gRUsy7X4Dig

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 (just to be sure, I copied their scripts directly to my project to make sure everything is an exact match). The project runs just fine in the editor. So far, so good.

I then followed the steps to install the required SDKs and point Unity to 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 Remote 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 or when I run on my device using Unity Remote as an input device - because in both of those cases, the compiled code is running on the computer, not the device. The problems only manifest themselves when I actually build to the target device.

The bugs only appear when the project is compiled and run on the Android device itself. What might I be missing here?

(If you need to take a look at the scripts to figure this out, just check out the official project on the Unity website. All of the scripts are there. I copied them line-by-line.)

In order to make this easier to debug, I made a video (link at the top of this post) showing my setup. Any help is welcome and appreciated. Thanks very much!

Information that might be helpful I have installed the following SDKs and modules:

  • Java Development Kit jdk1.8.0_65

  • Android SDK Tools 24.4.1

  • Android SDK Platform-tools 23.1

  • Android SDK Build-tools 23.0.2

  • Android 6.0 (API23)

  • Android 4.2.2 (API 17)

  • Android Support Library 23.1.1

  • Google USB Driver 11

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by thesleeve · Feb 02, 2016 at 10:17 PM

This issue has been confirmed by the Unity staff and is being investigated. This thread contains updates: http://forum.unity3d.com/threads/2d-roguelike-q-a.297180/page-12

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Instantiated GameObject is Invisible on Android -- But is Visible in Inspector (Should be Visible) 1 Answer

"No Android Device Found" on Build and Run 1 Answer

Why does open jdk use so much memory when doing an android build and why isn't it closed automatically when the build is done? 0 Answers

No camera / images on Android build 1 Answer

Different Unity games cannot install on same Android device 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges