经过对比log,黑屏的log比正常的多出一行:
Unity: Unable to query for permission: Fragment null must be a public static class to be properly recreated from instance state.


经过google ,这个是unity的bug。
https://answers.unity.com/questions/1405576/android-8-permission-issue.html
解决办法是:
https://forum.unity.com/threads/game-does-not-work-on-new-android-oreo.490142/page-3

本文记录了一个在Unity中遇到的针对Android Oreo设备的权限问题,该问题导致游戏出现黑屏现象。通过对比日志发现,错误信息指向了Unity的一个已知Bug。文章提供了来自Unity论坛的解决方案链接。
1307





