Hello, World! Trying Glance Tiles for the 1st time...
# glance
b
Hello, World! Trying Glance Tiles for the 1st time, I'm getting an exception when trying to show a simple Image:
Copy code
java.lang.NoSuchMethodError: No virtual method getContentDescription()Ljava/lang/String; in class Landroidx/glance/EmittableImage; or its super classes (declaration of 'androidx.glance.EmittableImage'
Known issue?
1
That's with glance 1.0.0-beta01 and glance.wear.tiles 1.0.0-alpha05. My code is simply:
Copy code
@Composable
    override fun Content() {
        Box(
            modifier = GlanceModifier.fillMaxSize(),
            contentAlignment = Alignment.Center
        ) {
            Image(
                provider = ImageProvider(R.drawable.ic_pill),
                modifier = GlanceModifier
                    .size(24.dp)
                    .clickable(actionStartActivity(MainActivity::class.java)),
                contentScale = ContentScale.Fit,
                contentDescription = null
            )
        }
    }
ok removing glance 1.0.0-beta01 fixes it. I guess they are not compatible.