- Home /
unity crashes in android oreo because i set screen orientation to landscape
here's the error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.*************.*************/com.unity3d.player.UnityPlayerActivity}: java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
i've tried all the fixes i could find, i created a custom styles.xml that has this code
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Opaque" parent="android:Theme.Material.Light.NoActionBar.Fullscreen">
<item name="android:windowIsTranslucent">false</item>
<item name="android:windowBackground">@android:color/green</item>
<item name="android:windowIsFloating">false</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:backgroundDimEnabled">false</item>
</style>
</resources>
and created a custom androidmanifest that sets the theme to that. i've also tried lowering the minimum API level to android 7.1, and that's all of the fixes i could find online.
thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
Parsing Error, code in android for a button 2 Answers
Error android build 0 Answers
Problem with Input.touchCount == 1 1 Answer
Android build error "you need android files to build" 1 Answer