Unity3D build stuck on scene 0

Hello,

After I remove the Google Mobile Ads plugin, my projects build get stuck at “Building Scene 0”

Very Strange:

1)I have tried to create a new blank scene and remove all other scenes but still got this stuck

  1. I have tried to rollback the projects and use assets that previously successfully build, but now it can not build and get stuck too.

Is there any way to debug this thing? or the way to fix this?

Note: I’m using Unity 2019.2.10f1

Do I need to reinstall Unity?

1 Like

Do you found a solution? i just have this problem after update unity inapp

Did you find a solution ?

1 Like

Post your Editor logs: Unity - Manual: Log files

Is something about sdk, just update and feel is working. When you switch to API 29 you need to update library of play resolver also.

1 Like

The solution have been answer here. c# - Unity3D build stuck on scene 0 - Stack Overflow

This bug is only exist in version 2019.2.x.
Disable Baked Global Illumin in all stucked scenes fix the issue.

I’m having this same issue in 2019.4.12f1.
What I tried:

  • Disabling lightmap on all scenes
  • Upgrading the SDK to api 29
  • Force resolving the libraries
    Last lines of editor log:
Opening scene 'Temp/__Backupscenes/0.backup'
Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
Loaded scene 'Temp/__Backupscenes/0.backup'
    Deserialize:            0.643 ms
    Integration:            7.135 ms
    Integration of assets:  0.005 ms
    Thread Wait Time:       35.795 ms
    Total Operation Time:   43.578 ms
System memory in use before: 93.0 MB.
System memory in use after: 92.9 MB.
Unloading 64 unused Assets to reduce memory usage. Loaded Objects now: 3279.
Total: 16.201100 ms (FindLiveObjects: 0.991700 ms CreateObjectMapping: 0.245700 ms MarkObjects: 14.386700 ms  DeleteObjects: 0.575700 ms)

Everything was working fine in 2019.4.7f1…

Any idea?

Update: in batchmode build. Unity build will stuck in any scene with missing Prefab reference.

Sometime clean /Library help when rebuild it. But when rebuild the 2nd times, the batchmode build will be stuck.

Clean, copy/paste all build scenes solve the issue.

Restarting system and unity resolved my issue

I’m now in Unity 2022.2 and this bug still exists. Has definitely nothing to do with Lightmaps etc. Any other ideas?

I have the same issue in Unity 2022.3, did you fix yours bro?

Yes, what ultimately works in most of these cases is to go into the Unity Settings → External tools where you see several check boxes in the “Android” section. Before you build, uncheck all of them and check them again. For me this usually works and following builds in the same session work as well, but you’ll have to redo this procedure in your next Unity session. Sometimes you need to also force run the Android resolver. Hope this helps!

3 Likes

same issue with version 2023.1.11f1

Nith666’s solution above worked for me. For windows users, it’s Edit > preferences > External tools.

Thanks Nith666, this was killing me!

This is still occurring nothing is working

I Have the Same issue as your’s Nothing is working i also trying to use different versions of unity but still no hope for building apk Please help…