google-developer-training / basic-android-kotlin-compose-training-practice-problems

Apache License 2.0
90 stars 112 forks source link

Image Displays in Preview But Not in the Android Emulator view #7

Closed TeacherLee closed 10 months ago

TeacherLee commented 1 year ago

I'm doing the Kotin course at https://developer.android.com/codelabs/basic-android-kotlin-compose-composables-practice-problems?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-composables-practice-problems#4.

The "Compose Article" exercise displayed its image without an issue, but not the "Task Manager" exercise. I copied your exact "Task Manager" code into Anroid Studio and ran the code. The @Composable Preview showed the image and the text, but the Android emulators I chose showed only the text but not the image. Any idea why?

Test

TeacherLee commented 10 months ago

Drop this issue. I bumbled through it.

TeacherLee commented 10 months ago

Close