В частности, Я пытаюсь обновить это:
Код: Выделить всё
implementation("com.google.android.play:review-ktx:2.0.1")Код: Выделить всё
implementation("com.google.android.play:review-ktx:2.0.2")e: /Users/rob/.gradle/caches/8.12/transforms/04f8f715ebb3bdd582a179774f26f862/transformed/jetified-review-ktx-2.0 .2-api.jar!/META-INF/java.com.google.android.apps.play.store.sdk.review.ktx_playcore_review_ktx.kotlin_module: Модуль был скомпилирован с несовместимой версией Kotlin. Двоичная версия его метаданных — 1.9.9999, ожидаемая версия — 1.7.1.
Текущая версия AGP — 8.1.4, компиляция Android и целевые SDK — 35, а плагин Kotlin Gradle — 1.7.10.
Вот файл build.gradle для всего приложения:
Код: Выделить всё
buildscript {
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.android.tools.build:gradle:8.1.4'
}
}
ext {
buildTools = '27.0.2'
compileSdk = 35
targetSdk = 35
minSdk = 23
supportLib = '1.0.0'
}
Код: Выделить всё
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.firebase.crashlytics'
android {
compileSdk rootProject.compileSdk
defaultConfig {
minSdk rootProject.minSdk
targetSdk rootProject.targetSdk
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs = ["-Xallow-result-return-type"]
}
buildFeatures{
dataBinding=true
}
}
dependencies {
implementation 'com.google.android.material:material:1.12.0'
//implementation 'androidx.support:appcompat-v7:23.2.0'
api "androidx.appcompat:appcompat:1.7.0"
implementation "androidx.legacy:legacy-support-v4:$rootProject.supportLib"
implementation platform('org.jetbrains.kotlin:kotlin-bom')
//Reflection
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation project(path: ':sdk_utilities')
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.8.7'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
implementation("com.google.android.play:review-ktx:2.0.1")
}
repositories {
mavenCentral()
}
Код: Выделить всё
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
android {
defaultConfig {
minSdk 23
targetSdk 35
compileSdk 35
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs = ["-Xallow-result-return-type"]
}
buildFeatures{
dataBinding=true
}
}
dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom')
//implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'androidx.recyclerview:recyclerview:1.4.0'
//implementation 'androidx.activity:activity-ktx:1.7.2'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7'
implementation "androidx.fragment:fragment-ktx:1.8.5"
implementation 'androidx.core:core-ktx:1.15.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation("com.google.android.play:review-ktx:2.0.1")
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... -of-kotlin