资源包里的AndroidManifest.xml配置错了
找到下面这段
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
将红色这段剪切到com.unity3d.player.UnityPlayerActivity的Activity标签里
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">
Unity启动默认运行的是UnityPlayerActivity。
对了,别忘记增加
对于安卓6.0之上的适配
新版插件已经解决了这个问题,出现这个问题的小伙伴请去下载新版