HI! Trying to use koin `3.1.0` crashes with: ```...
# koin
a
HI! Trying to use koin
3.1.0
crashes with:
Copy code
Process: <http://com.alorma.online|com.alorma.online>, PID: 27063
    java.lang.NoSuchMethodError: No interface method startReplaceableGroup(ILjava/lang/String;)V in class Landroidx/compose/runtime/Composer; or its super classes (declaration of 'androidx.compose.runtime.Composer' appears in /data/app/~~Blc5lbQ6ufp-BTmeiEZj8Q==/com.alorma.online-HU9SyBXOt-tG6CArGrkzLg==/base.apk)
deps:
Copy code
implementation("io.insert-koin:koin-androidx-compose:3.1.0")
Copy code
class OnlineRoomsViewModel: ViewModel() {

    val state: StateFlow<Boolean> = MutableStateFlow(true)

}
Copy code
object OnlineRoomsModule {
    operator fun invoke() = module {
        viewModel<OnlineRoomsViewModel>()
    }
}
any idea @arnaud.giuliani?
j
What version of Jetpack Compose are you using?
It needs I believe to be beta08
a
1.0.0-beta08
j
and Kotlin 1.5.10?
a
yes
j
fwiw these are set of dependencies I have in project here (using Koin 3.1.0) https://github.com/joreilly/PeopleInSpace/blob/main/buildSrc/src/main/java/Dependencies.kt
a
let me check
mmmmmm nothing
I've this 3 deps:
Copy code
implementation("io.insert-koin:koin-core:3.1.0")
    implementation("io.insert-koin:koin-android:3.1.0")
    implementation("io.insert-koin:koin-androidx-compose:3.1.0")
j
are you using any other compose related libraries that might have dependency on older version of compose?
a
mmm no,is just a new empty project
Copy code
implementation("androidx.core:core-ktx:1.5.0")
    implementation("androidx.appcompat:appcompat:1.3.0")
    implementation("com.google.android.material:material:1.3.0")
    implementation("androidx.compose.ui:ui:1.0.0-beta08")
    implementation("androidx.compose.material:material:1.0.0-beta08")
    implementation("androidx.compose.ui:ui-tooling:1.0.0-beta08")
    implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.3.1")
    implementation("androidx.activity:activity-compose:1.3.0-beta01")

    implementation(platform("com.google.firebase:firebase-bom:28.1.0"))
    implementation("com.google.firebase:firebase-analytics")
    implementation("com.google.firebase:firebase-firestore")

    implementation("io.insert-koin:koin-core:3.1.0")
    implementation("io.insert-koin:koin-android:3.1.0")
    implementation("io.insert-koin:koin-androidx-compose:3.1.0")

    implementation(platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.5.0"))
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-play-services")
    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test")
AGP: 7.1.0-alpha02
a
any better?
a
nop
i endup doing my own locator, as is just a pet project
but i would love to use koin 😞
a
try to restart from John’s example also
a
what u mean?
a
try to reuse a project such PeopleInSpace
a
uhmm, will check
Btw, will it be updated to compose beta09?
j
It works with beta09.... PeopleInSpace updated to use that
a
uhmmmmmmmm, PeopleInSpace works...
so not sure what I have on my code that is different