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 PMmbonnin
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
CLOVIS
03/16/2023, 8:16 PMmbonnin
03/16/2023, 8:16 PMmbonnin
03/16/2023, 8:17 PMCLOVIS
03/16/2023, 8:17 PMcom.android.library
, yesmbonnin
03/16/2023, 8:17 PMmbonnin
03/16/2023, 8:18 PMmbonnin
03/16/2023, 8:18 PMmbonnin
03/16/2023, 8:18 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 jarmbonnin
03/16/2023, 8:19 PMmbonnin
03/16/2023, 8:19 PMCLOVIS
03/16/2023, 8:20 PMCLOVIS
03/16/2023, 8:24 PMmbonnin
03/16/2023, 8:24 PMCLOVIS
03/16/2023, 8:25 PM