architecture-samples
architecture-samples copied to clipboard
gradlew test fails with "Unresolved reference: HiltTestActivity"
Relevant log output:
> Task :app:compileReleaseUnitTestKotlin FAILED
e: /Users/donturner/Code/workspace-android/architecture-samples/app/src/sharedTest/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskScreenTest.kt: (32, 60): Unresolved reference: HiltTestActivity
This is because HiltTestActivity is defined only for the debug source set so is not available for release builds.
Discussed with Jose, agreed that the test task should only run testDebug (not testRelease)