sunflower icon indicating copy to clipboard operation
sunflower copied to clipboard

Preview in GalleryScreen doesn't show anything

Open IgorGanapolsky opened this issue 2 years ago • 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

IgorGanapolsky avatar Feb 26 '23 10:02 IgorGanapolsky

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

wlazlopwl avatar Mar 10 '23 21:03 wlazlopwl

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?

sanao1006 avatar Mar 28 '23 07:03 sanao1006