https://kotlinlang.org logo
#compose
Title
# compose
t

Tower Guidev2

06/17/2022, 3:03 PM
Help 😄
Im following this google codelab and cannot import
Copy code
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
heres my gradle
Copy code
api "androidx.compose.ui:ui:$compose_version"
//Material 3 imports
api 'androidx.compose.material3:material3:1.0.0-alpha13'
api "androidx.compose.material3:material3-window-size-class:1.0.0-alpha13"

api "androidx.compose.material:material-icons-extended:$compose_version"
api "androidx.compose.ui:ui-tooling-preview:$compose_version"
api "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.0-rc01"
api "androidx.lifecycle:lifecycle-runtime-ktx:2.5.0-rc01"
api 'androidx.activity:activity-compose:1.4.0'

api 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
what am i missing? i have to admit im trying to use material3 and not the codelabs version! is that my mistake?
Copy code
import androidx.compose.material3.NavigationBar
import androidx.compose.material3.NavigationBarItem
appears to be the solution 😎
3 Views