Код: Выделить всё
Starting in Kotlin 2.0, the Compose Compiler Gradle plugin is required when compose is enabled. See the following link for more information: https://d.android.com/r/studio-ui/compose-compiler
Код: Выделить всё
allprojects {
buildscript {
ext.kotlin_version = '1.9.0'
repositories {
google()
mavenLocal()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.2'
classpath "io.realm:realm-gradle-plugin:10.18.0"
classpath 'com.google.gms:google-services:4.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.20"
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.huawei.agconnect:agcp:1.9.1.303'
classpath 'com.huawei.hms.plugin:analytics:5.0.1.300'
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.8.0'
}
}
}
android {
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
buildFeatures {
dataBinding = true
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion "1.5.14"
}
}
Почему я получаю эту ошибку?
Подробнее здесь: https://stackoverflow.com/questions/790 ... n-1-9-proj