Home > Net >  Bottom Navigation Activity when selected error occured
Bottom Navigation Activity when selected error occured

Time:09-01

i am beginner and learning android studio. today i opened a new project in android studio and selected bottom navigation activity. i haven't code any thing i just want to run this app but error occurs.

CodePudding user response:

Update all dependencies to the latest version to solve the error. Check below dependencies also try to have kotlin version:

implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'

Most likely, one of your dependencies uses the kotlin version of the viewmodel library whereas your code uses the java version.

  • Related