android/codelab-android-compose

How should card components and attributes be imported?

SaltedFish-Extreme opened this issue · 4 comments

Well, I found that upgrading all the packages introduced in the project to the latest version will have Card components and properties, but the corresponding compilation SDK needs to be upgraded to 33, and the minimum adaptation SDK needs to be 25

me too. same issue.

add these sentences to gradle's dependencies, and the Card will be found.

def composeBom = platform('androidx.compose:compose-bom:2022.10.00')
implementation(composeBom)
androidTestImplementation(composeBom)

@ppjjhh thanks,I later upgrade the relevant dependent libraries to the latest version and it can be used

image