Changing the Main Scene Crashes my game

Godot Version

4

Question

Changing the Main Scene Crashes my Game.

My game runs fine in the project editor, but when I export it to apk and try it on my phone, it crashes immediately on start up.

I have done trial and error to pin point the cause of it.
I found out that my apk works fine when my main scene is left unchanged.
However, if I change the main scene and export it to apk, it crashes (still works in editor).

I would appreciate help on how to change the main scene without crashing my game :frowning:

The console in the editor doesn’t show any errors either when running on it.

Try enabling one-click deploy and debug the game remotely

Thanks for the suggestion but I get an error when I try one click deploy… it says
“Could not install to device: adb: failed to install C:// directory .apk: Performing Streamed Install” :frowning: I have enabled debugging mode, USB debugging, and connected my phone to my pc

I sort of came up with a work around.

I found out that making a duplicate of my current main scene
and changing my main scene to that duplicate works.

So I just made a home screen on top of that duplicate scene.