Unity android crash when split apk

I got this problem after upgrade to 2019.4. The crash happens before the splash screen. The logcat message:

02-27 16:07:25.147 15249 15276 I Unity : check apk path fail, reported:/storage/emulated/0/Android/obb/com.xxx.xxx/main.43.com.xxx.xxx.obb, actual:/data/app/com.xxx.xxx-cxuXClHbHq1hyo3VZo0KwA==/base.apk
02-27 16:07:25.147 15249 15276 I Unity : Illegal usage of unity detected, shutdown unity.

“xxx” is not the real name. I just replaced it with xxx in the forum.

Unity version: 2019.4.19

2 Likes

Same. Have you solved this problem?

Same problem

Not yet, I have submitted a bug report.

Same problem

Hi, Do they has fix this bug?I have get same problem

Have you solved this problem?

I think I found the solution. It seems the issue only occurs in the Chinese version. Change to the global version will not crash anymore.

There’s no such error message in core Unity code, it might be coming from one of the plugins or packages. Can you try performing simple search, extract your apk, and do search Illegal usage of unity detected in all extracted files, curious from where it’s coming

There are too many files and some files can’t be opened as text, so I don’t have the ability to do this.
I have tested it in an empty project and it still crashes. I also submitted a bug report before, but there seems to be no response.

You can search binaries too, if it’s only a string

Oh, I find it from “libunity.so” file.

But it disappeared if you build with the global version:o

Sorry, what is global version?

If the unity editor is download from outside of China, that is what I called “global version”. You may know in China you can only download a special unity editor unless use VPN.

Looks similar to App not working on some devices; Failed to load 'libmain.so'