Building .apk interrupted

Hi everyone,

I’m a newbie to Unity and I’m currently developing an 2D Android app. Earlier in my project, I was able to build the APK file without any issues.

However, as I’ve continued developing the game and it’s grown more complex, the build process now interrupts after just a few seconds. The compiling window appears briefly and then just disappears and I get a message “cannot build player while editor is importing assets or compiling scripts”.

The game runs perfectly fine in the simulator, so I’m not sure what’s going wrong during the build process. I also tried switching the platform to Windows to see if that would help, but the problem still occurs.

I have over 20GB of free space on my disk, so I don’t think storage is the issue. Has anyone else faced similar problems or have any suggestions on how to troubleshoot this?

Thanks in advance!

Please don’t use the 2D tag unless you’re asking about 2D features.

Thanks.

Attaching Editor.log with error might help.