Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
2
Question by Quido3 · Jul 03, 2015 at 12:10 AM · androidbuildosxinstallold

Unity installs old build

I recently got an older MacBook as development device and have been having some problems when building on Android devices.

Sometimes, when I build the game on my device, the installed app is an older version. Running old code, opening scenes that are not enabled and such.

I first encountered this when implementing ads for a game. The plugin we used had a test scene containing all the functionality for test purposes. I added the scene to the build and deactivated others and it ran just fine. Afterwards I disabled the test scene and enabled the original scenes, but still after a build and install, the app in the device opened up the test scene. This has continued even after finishing the ads and implementing other things in the game.

Now I started to modify my shop scripts in another project. My modifications broke the shop and I started finding out why. Every now and then the version installed to the device was missing debuglines, or had old ones, and I had to do another build and hope it would be the current version. One time the version was the one before I even broke the shop.

Has anyone else encountered anything like this? I tried googling, but did not find anything relevant.

I have tried two devices(Note 3, Nexus 7) and have two projects, both with this problem. I have tried uninstalling, clearing cache and data, cleaning project, reimport and many combinations of them. Also I am using Git for version handling.

Comment
Add comment · Show 1
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
avatar image Lilius · Sep 12, 2016 at 04:09 PM 0
Share

Try to change your version and bundle version code in player settings.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by TCD · Jul 04, 2015 at 01:13 PM

Make sure to press the add current button when building to ensure u don't build an older scene, but the curent one.

Comment
Add comment · Show 4 · 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
avatar image Quido3 · Jul 04, 2015 at 02:20 PM 0
Share

Yes I have done that. Also the problem is not restricted to scenes, so I dont think that can be the problem here.

avatar image marquitodj · Apr 30, 2016 at 11:05 PM 0
Share

Same problem here, when I build and run the game on my device, the installed app is an older version. Running old code, with old bugs and old camera placements. I don't know what is going on, the game runs fine when testing using the unity remote app.

avatar image ajayajayaj · Sep 11, 2016 at 08:42 PM 0
Share

Have you found an answer?

avatar image Quido3 · Sep 12, 2016 at 08:56 AM 0
Share

Nope. I got rid of the macbook shortly after, but have gotten the same issue on multiple devices afterwards. Dont know what causes it or how to get rid of it. Almost always it goes away in time.

avatar image
0

Answer by MD_Reptile · Apr 30, 2016 at 11:07 PM

A common problem for me - although you might have different situation:

Your possibly building out to a different folder and not realizing it!

If you ever made a copy of your projects folder, and opened it as a new project, and went to build for the same platform - you may find it "remembers" that you once built out to the old directory, and it will default to building out there again.

Try building to a folder you create on your desktop or somewhere specific, so you can navigate directly there, and make sure your not re-launching an old version of your game!

Comment
Add comment · Show 3 · 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
avatar image Quido3 · May 01, 2016 at 06:49 AM 0
Share

I have been building for Android and mostly using the build and run button. I have tried building the .apk to a different folder and with different a name, but the problem persists.

avatar image MD_Reptile Quido3 · May 01, 2016 at 07:02 AM 0
Share

Are you 100 percent sure the right scenes are in the build settings?

avatar image dkdhunnoo MD_Reptile · Nov 16, 2018 at 07:36 AM 0
Share

Thanks bro, @$$anonymous$$D_Reptile. You don't know how much hours I've lost with something so small!!

I know its been 2 years since you posted this, but i did not include the correct scene in the build setting.

Thanks a lot!!!

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

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to Simulate a Fresh install Android. 1 Answer

Distribute terrain in zones 3 Answers

Android Build on OSX Crashing after "Done" 0 Answers

What does this error even mean? 1 Answer

Build in Gradle 0 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