ABausG / home_widget

Flutter Package for Easier Creation of Home Screen Widgets
776 stars 213 forks source link

How to fix this error #259

Closed EDnny12 closed 3 months ago

EDnny12 commented 5 months ago

org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering

I ran code example.

fimpact-nicole commented 4 months ago

Adding code below in android/app/build.gradle works for me.

android {
  ...
  buildFeatures {
      compose true
  }
  composeOptions {
      kotlinCompilerExtensionVersion '1.5.2'
  }
}

I wrote 1.5.2 for compiler verison because I use 1.9.0 version kotlin. You can check compatible compose compiler versions in this page.