As of dev04, I’m getting a compilation error any t...
# compose
z
As of dev04, I’m getting a compilation error any time any of my composables tries accessing an ambient. Is there any new gradle/compiler configuration we need? Error + stacktrace in thread.
t
Try the following steps: (1) set kotlinCompilerExtensionVersion to 0.1.0-dev04
android { ... composeOptions { kotlinCompilerExtensionVersion "0.1.0-dev04" } }
(2) update the compose-ui dependencies to use dev04
implementation 'androidx.uiui framework0.1.0-dev04' implementation 'androidx.uiui layout0.1.0-dev04' implementation 'androidx.uiui material0.1.0-dev04' implementation 'androidx.uiui tooling0.1.0-dev04'
z
Setting
kotlinCompilerExtensionVersion
seems to fix it – thanks!
👍 1