- Home /
The Android app starts in portrait mode (setting is AutoRotation, Landscape) and Crash when I rotate my device.
The Orientation setting is the same as the screen shot, but when i launch the app, it starts in Portrait. And when I rotate my test device, it crashes.
The first time I used version 5.4.1f1, I upgraded to version 2017.4.6f1. What is the problem? It 's too frustrating. I have no idea what the problem is. please Help me...
Answer by NorthStar79 · Jul 25, 2018 at 01:27 PM
well, answering this question is a long distant shoot given that have too lite information but, i usually get this kind of crashes after messing up with android manifest file.
You can try to add this lines of code Under 'activity' tag :
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
I hope this helps.
Thank you for your kind reply.
I put the modules separated by aar, which has a Tag in Android$$anonymous$$anifest.xml.
Could there be any other reason? Is this usually a problem with Android$$anonymous$$anifest?
of course, there could be other reasons that I can not think of at this moment. But you say this;
but when i launch the app, it starts in Portrait.
this makes me think that there is a high probability of Android$$anonymous$$anifest.xml error.
Yes, it is different from the settings in Player Settings. However, this is the same Android$$anonymous$$anifest as when I used the previous version (5.4.1f1). I do not know what the difference is. Build differs from Gradle. Is it a problem to build with Gradle?
Your answer
Follow this Question
Related Questions
Random crashes in Android build 0 Answers
Does ARCore disable the ability to get my GPS position? 1 Answer
Unity 3d Network dies on Android 0 Answers
Lerping the Camera closes Nexus 5, not Nexus 10 0 Answers
App crashes on Android 7.11 2 Answers