我的项目使用unity5.4.1开发,在Android8.0的时候启动会出现黑屏,同时发现日志中有这一句日志Unable to query for permission: Fragment null must be a public static class to be properly recreated from instance state,经过各种百度Google之后,发现在不升级unity版本的情况下有三种解决办法:
1.在AndroidManifest.xml中加入:
2.在AndroidManifest.xml的Activity节点下加上: