Код: Выделить всё
No interface method complete()Z in class Lkotlinx/coroutines/CompletableJob; or its super classes (declaration of 'kotlinx.coroutines.CompletableJob' appears in /data/app/~~fIPCXqaEQds-4dojIoIsag==4dojIoIsag==/com.fluffypants.rockhard==/base.apk!classes2.dex
Код: Выделить всё
private var pollJob: Job = Job().also { it.complete() }
Код: Выделить всё
@RunWith(AndroidJUnit4:class
class MyInstrumentedTest{
@get:Rule
val composeTestRule = createComposeRule()
@OptIn(ExperimentalCoroutinesApi::class)
@Test
fun myTest() = runTest {
//errors no matter what I put in here
}
}
Код: Выделить всё
testImplementation "junit:junit:4.13.2"
androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1"
androidTestImplementation "androidx.compose.ui:ui-test-junit4-android:1.6.3"
debugImplementation "androidx.compose.ui:ui-test-manifest:1.6.3"
Подробнее здесь: https://stackoverflow.com/questions/781 ... b-exceptio
Мобильная версия