Javokhir Akramjonov
06/20/2024, 3:14 PM> Task :composeApp:kspKotlinIosX64 FAILED
e: [ksp] java.lang.NullPointerException: null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl
error: null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':composeApp:kspKotlinIosX64'.
> A failure occurred while executing com.google.devtools.ksp.gradle.KspAAWorkerAction
> null cannot be cast to non-null type org.jetbrains.kotlin.load.java.structure.impl.JavaClassImpl
My versions are:
[versions]
agp = "8.2.2"
android-compileSdk = "34"
android-minSdk = "24"
android-targetSdk = "34"
androidx-activityCompose = "1.9.0"
androidx-appcompat = "1.7.0"
androidx-constraintlayout = "2.1.4"
androidx-core-ktx = "1.13.1"
androidx-espresso-core = "3.5.1"
androidx-material = "1.13.0-alpha03"
androidx-test-junit = "1.1.5"
compose = "1.6.8"
compose-plugin = "1.6.10"
junit = "4.13.2"
kotlin = "2.0.0"
room = "2.7.0-alpha04"
ksp = "2.0.0-1.0.22"
sqlite = "2.5.0-alpha04"
voyager = "1.1.0-beta02"
koin = "3.5.6"
kotlin-coroutine = "1.9.0-RC"
kotlin-immutable-collection = "0.3.7"
datastore = "1.1.1"
kotlin-date-time = "0.6.0"
Can anyone help with this, please?chrisjenx
06/20/2024, 3:16 PMJavokhir Akramjonov
06/20/2024, 3:19 PMkotlin.code.style=official
#Gradle
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
#Android
android.nonTransitiveRClass=true
android.useAndroidX=true
#MPP
kotlin.mpp.androidSourceSetLayoutVersion=2
kotlin.mpp.enableCInteropCommonization=true
#KMP
kotlin.mpp.androidGradlePluginCompatibility.nowarn=true
# Disabled due to <https://youtrack.jetbrains.com/issue/KT-65761>
kotlin.native.disableCompilerDaemon=true
ksp.useKSP2=true
# For KSP
DallowAllTargetConfiguration=false
my current gradle.propertieschrisjenx
06/20/2024, 3:20 PMksp.useKSP2=false
Javokhir Akramjonov
06/20/2024, 3:20 PMCannot change attributes of configuration ':composeApp:debugFrameworkIosX64' after it has been locked for mutation
chrisjenx
06/20/2024, 3:21 PMchrisjenx
06/20/2024, 3:21 PMchrisjenx
06/20/2024, 3:21 PM