Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NavigationCodelab] end branch is missing the navigation testing dependency. #365

Open
easyhooon opened this issue Jun 17, 2023 · 0 comments
Assignees

Comments

@easyhooon
Copy link

To make the test code succeed as in the codelab, end branch needs to add the following dependency in the build.gradle: androidTestImplementation "androidx.navigation:navigation-testing:$rootProject.composeNavigationVersion".

Otherwise, the following error will occur:

e: file:///Users/yijihun/AndroidStudioProjects/codelab-android-compose/NavigationCodelab/app/src/androidTest/java/com/example/compose/rally/NavigationTest.kt:26:28 Unresolved reference: testing

'e: file:///Users/username/AndroidStudioProjects/codelab-android-compose/NavigationCodelab/app/src/androidTest/java/com/example/compose/rally/NavigationTest.kt:36:33 Unresolved reference: TestNavHostController'.

e: file:///Users/yijihun/AndroidStudioProjects/codelab-android-compose/NavigationCodelab/app/src/androidTest/java/com/example/compose/rally/NavigationTest.kt:42:29 Unresolved reference: TestNavHostController

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@simona-anomis @easyhooon and others