rattleshirt
06/13/2018, 9:58 AMjava.lang.NoSuchMethodError: No virtual method refresh(Lkotlin/Unit;Lkotlin/coroutines/experimental/Continuation;)Ljava/lang/Object;
when calling a suspend fun with param Unit
? Is this a coroutine or dex’ing issue?louiscad
06/13/2018, 10:22 AMrattleshirt
06/13/2018, 11:22 AMfun refresh() = launchWithParent(dispatchers.main) {
paymentsDataSource.refresh(Unit)
}
with fun launchWithParent(
context: CoroutineContext = DefaultDispatcher,
block: suspend CoroutineScope.() -> Unit
) = launch(context = context, parent = viewModelJob, block = block)
and override suspend fun refresh(param: Unit) {
paymentsFetcher.getPayments()
}
louiscad
06/13/2018, 12:38 PMrattleshirt
06/13/2018, 12:39 PMlouiscad
06/13/2018, 12:41 PMrattleshirt
06/13/2018, 12:41 PMlouiscad
06/13/2018, 1:17 PMrattleshirt
06/13/2018, 1:39 PMclassesX.dex
file for each gradle module