# LG G5 (and other Android 8 devices) crash if Orientations=Portrait

**URL:** <https://forums.fusetools.com/t/lg-g5-and-other-android-8-devices-crash-if-orientations-portrait/8016>\
**Category:** Bug Reports\
**Created:** [March 29, 2020, 5:22pm UTC](https://forums.fusetools.com/t/lg-g5-and-other-android-8-devices-crash-if-orientations-portrait/8016 "2020-03-29T17:22:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [March 29, 2020, 5:22pm UTC](https://forums.fusetools.com/t/lg-g5-and-other-android-8-devices-crash-if-orientations-portrait/8016/1 "2020-03-29T17:22:35Z")

</div>

Hello! I thought this one was already fixed, but if Orientations is defined as “Portrait” in .unoproj, LG G5 and probably other Android 8 devices (Samsung Galaxy S8 for example) crash on startup. This issue is reported at least here:

> [@Problem with Android API 27 and later](https://forums.fusetools.com/t/problem-with-android-api-27-and-later/7430):
>
> With Android API 27 and later, you can no longer specify screen orientation in the manifest file: android:screenOrientation="portrait" if you have a style setting of: \<item name="android:windowIsTranslucent"\>true\</item\> Instead, you need to request the desired screen orientation in the onCreate method of the main activity: if (android.os.Build.VERSION.SDK\_INT \< Build.VERSION\_CODES.O) { setRequestedOrientation(ActivityInfo.SCREEN\_ORIENTATION\_PORTRAIT); } Otherwise, your …

This issue can be fixed by removing the orientation restriction or by adding WindowIsTranslucent=false to the .unoproj in the Android structure.

---

<div class="post-metadata">

**Author:** ![Cristian\_Karmy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cristian_karmy/32/480_2.png) [@Cristian\_Karmy](https://forums.fusetools.com/u/Cristian_Karmy)\
**Post date:** [March 30, 2020, 6:39pm UTC](https://forums.fusetools.com/t/lg-g5-and-other-android-8-devices-crash-if-orientations-portrait/8016/2 "2020-03-30T18:39:09Z")

</div>

Its solved. You need to have the last uno and fuselibs version and specify the last SDK in your .unoproj

```
"SDK": {
      "BuildToolsVersion": "29.0.2",
      "CompileVersion": 29,
      "MinVersion": 17,
      "TargetVersion": 29
    },
```

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [March 31, 2020, 4:55am UTC](https://forums.fusetools.com/t/lg-g5-and-other-android-8-devices-crash-if-orientations-portrait/8016/3 "2020-03-31T04:55:11Z")

</div>

Ok, thank you! Is 29.0.2 the current preferred version?
