Mikael Alfredsson
11/18/2020, 8:47 PMshareIn
. in an Android Studio project. The editor code-completes it, I can jump to the source of it, but when I compile I get a Unresolved reference: shareIn
it sounds like the compiler and the editor isn’t in sync, but I don’t know how to solve it.elizarov
11/19/2020, 8:16 AMgradlew dependencies
and see if you have kotlinx-coroutines-xxx
artifacts with different versions or something like that.Mikael Alfredsson
11/19/2020, 9:02 AM1.4.1
, i’m also using org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10
if that helps?elizarov
11/19/2020, 9:04 AMMikael Alfredsson
11/19/2020, 10:06 AMcom.android.billingclient:billing-ktx:3.0.1
according to dependencies
output, it should use the correct coroutine version, but something must fail.
\--- com.android.billingclient:billing-ktx:3.0.1
+--- com.android.billingclient:billing:3.0.1
+--- org.jetbrains.kotlin:kotlin-stdlib:1.3.50 -> 1.4.10 (*)
\--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.0 -> 1.4.1 (*)
shareIn
problem, but it creates a few others 😉elizarov
11/19/2020, 10:12 AMMikael Alfredsson
11/19/2020, 10:12 AMimplementation('com.android.billingclient:billing-ktx:3.0.1') {
exclude group: 'org.jetbrains.kotlinx'
exclude group: 'org.jetbrains.kotlin'
}