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

David Odari

08/25/2020, 7:21 PM
So I updated the default compose app Android Studio creates to
0.1.0-dev17
and Kotlin version to 1.4.0 as well as the compose Kotlin compiler. This are the dependencies in the dependencies block
Copy code
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'androidx.core:core-ktx:1.3.1'
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.0'
    implementation "androidx.compose.foundation:foundation:$compose_version"
    implementation "androidx.compose.material:material:$compose_version"
    implementation "androidx.compose.ui:ui:$compose_version"
    implementation "androidx.compose.animation:animation:$compose_version"
    //For @Preview
    implementation "androidx.ui:ui-tooling:$compose_version"
The issue I have is on the
@Preview
annotation claiming it works on composable functions and my function is a composable function .Is there something I am missing?🤔 👇
v

Vinay Gaba

08/25/2020, 7:23 PM
This is a known issue on Android Studio 4.2 Canary 7. Should be fixed in the next release i.e Canary 8
d

David Odari

08/25/2020, 7:24 PM
Oh alright ,guess ill revert then ,thanks alot @Vinay Gaba
v

Vinay Gaba

08/25/2020, 7:25 PM
Actually my bad! I assumed it was the issue we’ve discussed here a few times. Just saw the screenshot closely. I don’t think it’s the same issue.
Preview won’t work on Canary 7 in general. But you shouldn’t see this error message regardless 😄
d

David Odari

08/25/2020, 7:31 PM
Oh okay I'm actually on canary 2 , guess I'll just work without the preview for now🤔
a

allan.conda

08/26/2020, 3:06 AM
This has been mentioned like 10 times already in the channel. Would be good to have a list of known issues somewhere
3 Views