Commit 4fd93db
ci: add missing androidx.test:runner dep for AndroidJUnitRunner
Previous CI run got all the way through SDK install, KVM, emulator
boot, APK install, and instrumentation start before failing with:
java.lang.RuntimeException: Unable to instantiate instrumentation
androidx.test.runner.AndroidJUnitRunner:
java.lang.ClassNotFoundException: Didn't find class
"androidx.test.runner.AndroidJUnitRunner" on path: DexPathList[...]
In modern androidx.test versions, ext:junit and runner are separate
artifacts. ext:junit ships AndroidJUnit4 + ApplicationProvider; runner
ships the AndroidJUnitRunner class that testInstrumentationRunner
references. Without the runner dep on the androidTest classpath the
class is missing from the test APK and instrumentation start fails
at test-run time — there's no compile-time check because
testInstrumentationRunner is a string property.
Add androidx.test:runner 1.6.2 (matches the other 1.6.x deps) to
the version catalog and to androidTestImplementation. The catalog
comment captures the failure mode so the gotcha is documented for
future-me.
:deviceintelligence:assembleDebugAndroidTest -> BUILD SUCCESSFUL.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b56024b commit 4fd93db
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
21 | 27 | | |
| |||
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| 33 | + | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
| |||
0 commit comments