I copied the dependencies mentioned in the website here: https://developer.android.com/guide/navigation/navigation-getting-started#kts to use Navigation Component. However, when i run the project, it says it could not find androidx.navigation:navigation-compose:. I've tried included $nav_version which is = 2.3.5, but the problem remains. Is there anything I missed out?
Screenshot without $nav_version:
Screenshot with $nav_version:
Navigation Compose was introduced after Navigation 2.3 - you need to use Navigation 2.4 (latest at this time is 2.4.0-rc01):
implementation "androidx.navigation:navigation-compose:2.4.0-rc01"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With