CLOVIS
03/16/2023, 8:07 PMCould not create an instance of type org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget.
> Could not generate a decorated class for type KotlinAndroidTarget.
> com/android/build/gradle/api/BaseVariant
The error message doesn't help me at all, where should I look for to fix this?mbonnin
03/16/2023, 8:14 PMCLOVIS
03/16/2023, 8:16 PMorg.gradle.api.reflect.ObjectInstantiationException: Could not create an instance of type org.jetbrains.kotlin.gradle.plugin.mpp.KotlinAndroidTarget.
Caused by: org.gradle.internal.instantiation.ClassGenerationException: Could not generate a decorated class for type KotlinAndroidTarget.
Caused by: java.lang.NoClassDefFoundError: com/android/build/gradle/api/BaseVariant
Caused by: java.lang.ClassNotFoundException: com.android.build.gradle.api.BaseVariant
mbonnin
03/16/2023, 8:16 PMCLOVIS
03/16/2023, 8:17 PMcom.android.library
, yesmbonnin
03/16/2023, 8:17 PMCLOVIS
03/16/2023, 8:19 PMmbonnin
03/16/2023, 8:19 PMplugins {
id("com.android.application").version(foo).apply(false)
}
is also loading the jarCLOVIS
03/16/2023, 8:20 PMmbonnin
03/16/2023, 8:24 PMCLOVIS
03/16/2023, 8:25 PM