- #1
greySky
- 4
- 2
https://developer.android.com/jetpack/compose/tutorial
in the "Add a picture" section
Hovering over DrawImage shows: "Unresolved reference: DrawImage", There is no auto import option for this error as there was with "Column" earlier in the tutorial.
I am using Android Studio 4.0 Canary 8
Is my local setup or the linked tutorial out of date? what is the current method to add an image
PS
I actually had two problems, "R.drawable.header" had some error I cannot remember the error text for this error but applying
https://stackoverflow.com/a/49743044
fixed the issue with R.drawable.header", but the DrawImage error persisted.
in the "Add a picture" section
Code:
@Composable
fun NewsStory(){
val image = +imageResource(R.drawable.header)
Column (modifier = Spacing(64.dp)){
Text("A day in shark fin cove")
Text("davenport")
Text("december 2018")
DrawImage(image)
}
}
Hovering over DrawImage shows: "Unresolved reference: DrawImage", There is no auto import option for this error as there was with "Column" earlier in the tutorial.
I am using Android Studio 4.0 Canary 8
Is my local setup or the linked tutorial out of date? what is the current method to add an image
PS
I actually had two problems, "R.drawable.header" had some error I cannot remember the error text for this error but applying
https://stackoverflow.com/a/49743044
fixed the issue with R.drawable.header", but the DrawImage error persisted.