Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity android crash when split apk

Discussion in 'Android' started by illusiveray, Feb 27, 2021.

  1. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    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
     
    Last edited: Feb 28, 2021
    dairectx and Mooophi like this.
  2. CN115

    CN115

    Joined:
    Jun 18, 2019
    Posts:
    1
    Same. Have you solved this problem?
     
  3. Jinngoo

    Jinngoo

    Joined:
    Jun 2, 2020
    Posts:
    6
    Same problem
     
  4. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    Not yet, I have submitted a bug report.
     
    Last edited: Mar 3, 2021
  5. simon0063

    simon0063

    Joined:
    Sep 3, 2020
    Posts:
    4
    Same problem
     
  6. simon0063

    simon0063

    Joined:
    Sep 3, 2020
    Posts:
    4
    Hi, Do they has fix this bug?I have get same problem
     
  7. simon0063

    simon0063

    Joined:
    Sep 3, 2020
    Posts:
    4
    Have you solved this problem?
     
  8. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    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.
     
    Last edited: Mar 15, 2021
  9. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    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
     
  10. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    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.
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    You can search binaries too, if it's only a string
     
  12. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    Oh, I find it from "libunity.so" file.
     
  13. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    But it disappeared if you build with the global version:eek:
     
  14. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Sorry, what is global version?
     
  15. illusiveray

    illusiveray

    Joined:
    Jun 18, 2015
    Posts:
    11
    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.
     
    Last edited: Mar 13, 2021
  16. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446