When building with il2cpp, there is an error that occurs when the number of scenes is large.

When the number of scenes reaches 800, the build succeeds.

If you increase the number of scenes by a certain number here, the above error occurs and the build does not work!

Any help would be greatly appreciated !!

The project that creates the bug situation is too large to contain a lot of scenes, and unfortunately it can’t be sent.

But I found out the cause of the problem.

It seems to be a problem of ‘MaxJsonLength’.

When extracting apk with il2cpp, if there are many scenes or resources or the file name is long, it is not extracted due to ‘maxjsonlength’.

If the path and file name of the scene required for simply building becomes longer, the amount of the scene that can extract apk with il2cpp is significantly reduced.

I’ve tried in many ways for this, but can’t solve it.

We just have to wait for Unity developers to patch it.

The issue has been acknowledged on the issue tracker here: