The Android app starts in portrait mode (setting is AutoRotation, Landscape) and Crash when I rotate my device.
Asked Answered
M

2

0

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…

Meaty answered 6/6, 2023 at 4:11 Comment(1)

if it is html, else I can't help you. <input type="password/>

Dahlberg
F
0

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.

Flavorsome answered 25/7, 2018 at 13:27 Comment(1)

Thank you for your kind reply. I put the modules separated by aar, which has a Tag in AndroidManifest.xml. Could there be any other reason? Is this usually a problem with AndroidManifest?

Meaty
I
0

For anyone who still faces this problem can lower Field of View of Camera and give it a try. I tried everything but this worked for me.

Intrados answered 4/5, 2024 at 23:24 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.