google-developer-training / basic-android-kotlin-compose-training-courses

Apache License 2.0
31 stars 16 forks source link

Practice: Build a Grid - grid package import problem #2

Closed hhyeok1026 closed 2 years ago

hhyeok1026 commented 2 years ago

Describe the problem

In Android Studio Dolphin, I made it as an empty compse template I got this problem.

I was working on a reference solution. LazyVerticalGrid didn't work like a solution.

This package could not be imported. androidx.compose.foundation.lazy.grid 'grid' was not recognized.

I checked the dependency versions of solution, In build.gradle (app level), By matching the dependency version below, I was able to import what I wanted. implementation 'androidx.compose.material:material:1.3.1'

==================================

Versions Android Studio version: Android Studio Dolphin | 2021.3.1 Patch 1 API version of the emulator:

hhyeok1026 commented 2 years ago

Just left an issue as a tip.