Search Unity

Black screen on android devices when using IL2CPP + .NET Standard 2.0

Discussion in 'Scripting' started by stopiccot_tds, Oct 25, 2018.

  1. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    App just hangs up showing black screen on startup when running on android devices. I have no idea why because there is nothing in the logcat: no stack traces, no native crashes, no error messages, nothing. IL2CPP + .NET 4.x is working fine. Mono runtime is working fine too. iOS build is working fine with any profile. Unity version 2018.2.13f1.
     
  2. DoublePixelStudio

    DoublePixelStudio

    Joined:
    Jan 30, 2017
    Posts:
    69
    Why are you using IL2CPP? Have you tried mono backend
     
  3. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
  4. chigolberi

    chigolberi

    Joined:
    Apr 14, 2019
    Posts:
    9
    У меня тоже самое на Android

    IL2CPP + .NET Standard 2.0 = black screen on android devices
    IL2CPP + .NET 4.x = black screen on android devices

    Mono + .NET Standard 2.0 = everything works fine!

    1.jpg

    Подскажите как решить?

    PS. Unity 2019.2.0f1 (64-bit), Android 4.2
     
  5. chigolberi

    chigolberi

    Joined:
    Apr 14, 2019
    Posts:
    9
    Нашёл причину!
    Нужно убрать галочку в настройках с "Strip engine code", тогда всё работает, но билд увеличился на 5мб , с 27.5мб до 32.5мб
    3.jpg
     
    hayaram likes this.