https://kotlinlang.org logo
#compose
Title
# compose
z

Zach Klippenstein (he/him) [MOD]

01/29/2020, 9:29 PM
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

tcracknell

01/29/2020, 9:35 PM
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

Zach Klippenstein (he/him) [MOD]

01/29/2020, 9:37 PM
Setting
kotlinCompilerExtensionVersion
seems to fix it – thanks!
👍 1