java.lang.IllegalStateException crash on newer API level

Hello! I’m getting crashes on some Android devices after upgrading the API level.

java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3194)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3302)
  at android.app.ActivityThread.-wrap12 (Unknown Source)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1891)
  at android.os.Handler.dispatchMessage (Handler.java:108)
  at android.os.Looper.loop (Looper.java:166)
  at android.app.ActivityThread.main (ActivityThread.java:7425)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:245)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:921)
Caused by: java.lang.IllegalStateException: 
  at android.app.Activity.onCreate (Activity.java:1081)
  at android.support.v4.app.BaseFragmentActivityDonut.onCreate (BaseFragmentActivityDonut.java:39)
  at android.support.v4.app.FragmentActivity.onCreate (FragmentActivity.java:297)
  at android.support.v7.app.AppCompatActivity.onCreate (AppCompatActivity.java:85)
  at fi.feedcowboy.slicefi.Slicefi.onCreate (Slicefi.java:53)
  at android.app.Activity.performCreate (Activity.java:7372)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1218)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3147)

Settings in .unoproj:

"SDK": {
      "BuildToolsVersion": "27.0.1",
      "CompileVersion": 27,
      "MinVersion": 16,
      "TargetVersion": 27
    },

Hi @Matti_Tihverainen, I am facing the same issue. Have fixed this ?

Hello! Yes, you can find the fix here: