• 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
1
Question by Nomppie · Aug 27, 2016 at 01:38 AM · androidbuildapk

Building APK is taking an absurdly long amount of time

I've been building my project for more than 24 hours and it's still not even close to being done. It's only finished building one scene (which was a menu) and has spent most of this time working on my first actual level. I don't think the scene has too much stuff in it, what other things could be causing this problem?

Comment
Add comment · Show 5
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 Nomppie · Sep 06, 2016 at 01:05 AM 0
Share

So I found something interesting, I had to cancel my initial build because my computer was getting pretty messed up after staying on for so many days. I sent it to a friend and asked him to build it, and it had the same problem, so it's not my computer, I removed a good chunk of the game objects from the scenes and the problem persisted. This time, however, I noticed that ins$$anonymous$$d of being stuck on "Light transport" like the first time, it was stuck on "Clustering". I have no idea what either of those things mean, but I do know that 1) $$anonymous$$y computer isn't the problem and 2) the amount of game objects isn't the problem.

avatar image stephenshelton · Sep 06, 2016 at 03:13 AM 0
Share

I've found that Unity will seem to "run away" when the OS is very low on memory (I've seen this happen on both OSX and Windows). Freeing memory and restarting Unity may help...

avatar image Nomppie · Sep 07, 2016 at 09:58 PM 0
Share

I made an empty project and build an AP$$anonymous$$ for it. It only took a $$anonymous$$ute after I worked out some complications. So now I know that the problem is definitely not unity itself, and it's co$$anonymous$$g from within the project itself. I will see what I can find from there.

avatar image Nomppie · Sep 08, 2016 at 12:37 AM 0
Share

I cut out a bunch of unused imported assets and decreased the size of the folder tremendously. This still didn't work. It got stuck again on Light Transport. I feel like if I could just know what that means I would know how to fix it. $$anonymous$$aybe. I never did much with the lights, I only added a second directional light with less intensity in the opposite direction of the first because the shadows were intense no matter what i did with the settings

avatar image stephenshelton · Sep 08, 2016 at 12:54 AM 0
Share

A Google search for "Light Transport" turns up a lot of results of people complaining about the same thing. Have you read through some of that? One suggestion claimed that reducing the size (scale = 0.01) allowed them to get past the problem. $$anonymous$$aybe you could try that just to see if it's indeed the same issue...

3 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by AurimasBlazulionis · Sep 08, 2016 at 09:17 AM

When the project is being built, it bakes lightmaps and global illumination. This takes a lot of time, if it is not a final product, disable precomputed dynamic GI and other GI options inside window/lighting. Also, uncheck auto option in that window, ambient lighting is completely enough for testing unless your game focusses on lighting.

Another option would be selecting all static objects and uncheck lightmap static in a drop down near the static check box.

Comment
Add comment · Show 1 · 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 Nomppie · Sep 08, 2016 at 03:31 PM 0
Share

This is what I did just before reading this answer. I have the apk built, thank you guys for helping

avatar image
0

Answer by meeruTheCoder · Aug 06, 2018 at 01:45 PM

Thanks, I turned off Baked GI, and it started building quicker. The best part is, nothing happened to my scene, so there is no price to pay. Cool!

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
avatar image
0

Answer by Chethan007 · Jan 10 at 11:57 AM

For me I saw that while building after half an hour or so it was stuck in some library/bee/..... folder.

So I closed the project, deleted the library folder and restarted Unity. The error went away.

Hope this helps someone

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

110 People are following this question.

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

Related Questions

Apk build and install problem 0 Answers

why android app after building is not working on physical device? 1 Answer

"com.google.common.base.verifyexception" Can't build my android game 0 Answers

Is anyone else having problems with gvr responding to phone movement android? 1 Answer

Build APK for Android doesn't transfer and start on phone by itself 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