rhenley
10/14/2025, 12:38 PMkotlin {
// ...
androidTarget {
// ...
dependencies {
androidTestImplementation("androidx.compose.uiui test junit4 android1.8.2")
debugImplementation("androidx.compose.uiui test manifest1.8.2")
}
}
}The first compilation error is "'fun dependencies(configure: KotlinDependencies.() -> Unit): Unit' cannot be called in this context with an implicit receiver. Use an explicit receiver if necessary." Replacing
dependencies with this@kotlin.dependencies gets past that problem, but then androidTestImplementation and debugImplementation are both flagged as "Unresolved reference" errors.
Is anyone else seeing these issues? Any workarounds? Thanks!Pamela Hill
10/14/2025, 1:37 PMPamela Hill
10/14/2025, 1:43 PMEkaterina Zaitseva
10/15/2025, 11:53 AMAdd the required dependencies for `androidTarget`:
```kotlin {
// ...
androidTarget {
// ...
dependencies {
androidTestImplementation("androidx.compose.uiui test junit4 android1.9.0")
debugImplementation("androidx.compose.uiui test manifest1.9.0")
}
}
}```It should be that way
Add the required dependencies in the root `build.gradle.kts`:
```dependencies {
// ...
androidTestImplementation("androidx.compose.uiui test junit4 android1.9.0")
debugImplementation("androidx.compose.uiui test manifest1.9.0")
}```Could you please try this solution?
rhenley
10/15/2025, 3:38 PMplugins { ... } declaration, but no dependencies { ... }. Instead, I added those lines to what I'd call the "root dependencies in the composeApp build.gradle.kts file" (along with debugImplementation(compose.uiTooling)) and it worked. I hope that helps.Ekaterina Zaitseva
10/15/2025, 3:43 PM