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

app/build.gradle is missing junit dependencies, causing Build to abort #1

Open
blueglyph opened this issue Jan 11, 2022 · 0 comments
Open

Comments

@blueglyph
Copy link

Those two dependencies are required:

    testImplementation 'junit:junit:4.13.2'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'

Otherwise, building the project from the command-line or from the IDE ends with an error:

Task :app:compileDebugUnitTestKotlin FAILED
e: D:\projects\android\kotlin-search-master\app\src\test\java\com\example\kotlin_search\ExampleUnitTest.kt: (3, 12): Unresolved reference: junit
e: D:\projects\android\kotlin-search-master\app\src\test\java\com\example\kotlin_search\ExampleUnitTest.kt: (5, 12): Unresolved reference: junit
e: D:\projects\android\kotlin-search-master\app\src\test\java\com\example\kotlin_search\ExampleUnitTest.kt: (13, 6): Unresolved reference: Test
e: D:\projects\android\kotlin-search-master\app\src\test\java\com\example\kotlin_search\ExampleUnitTest.kt: (15, 9): Unresolved reference: assertEquals

Alternatively, since the two source test files don't seem to do anything, they could be removed.

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

1 participant