android/sunflower

Preview in GalleryScreen doesn't show anything

Opened this issue · 2 comments

Hello,
I am learning the @Preview api, and was hoping to see something in GalleryScreen. However, it is just blank:

Screenshot 2023-02-26 at 5 36 28 AM

You can use interactive mode and then you will see view items :)
image

Hi
When I try to Run Preview on GalleryScreen, I get the following error and the build fails

e: C:\Users\user\sunflower\app\src\androidTest\java\com\google\samples\apps\sunflower\worker\SeedDatabaseWorkerTest.kt: (70, 29): Cannot access class 'com.google.common.util.concurrent.ListenableFuture'. Check your module classpath for missing or conflicting dependencies
e: C:\Users\user\sunflower\app\src\androidTest\java\com\google\samples\apps\sunflower\worker\SeedDatabaseWorkerTest.kt: (70, 41): Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public operator fun MatchGroupCollection.get(name: String): MatchGroup? defined in kotlin.text

Perhaps a dependency error has occurred.
Interactive mode is available.
Is this error happening only in my environment?