I am trying to upgrade the version of Google Play in order to target API Version 34. And getting the below error
Duplicate class com.google.android.play.core.listener.StateUpdatedListener found in modules core-1.6.1.aar -> jetified-core-1.6.1-runtime (com.google.android.play:core:1.6.1) and core-common-2.0.2.aar -> jetified-core-common-2.0.2-runtime (com.google.android.play:core-common:2.0.2)
My gradle dependecies is as follows
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1'
implementation 'com.google.android.material:material:1.12.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.activity:activity-ktx:1.9.0'
implementation 'androidx.fragment:fragment-ktx:1.8.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation "androidx.preference:preference-ktx:1.2.1"
def room_version = '2.6.1'
implementation "androidx.room:room-runtime:$room_version"
ksp "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
}
I am not able to resolve where the old version is still being pulled in during build.
Running the below command doesn't list anything apart from
./gradlew dependencies
No configurations
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 11s
1 actionable task: 1 executed