Jérémy CROS
06/30/2021, 12:20 PM* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Failed to calculate the value of task ':compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
> Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, /Users/jeremy/perso/projects/untitled/build/generated/ap_generated_sources/debug/out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@5cf2ca8c) before task ':compileDebugJavaWithJavac' has completed is not supported
I’ll add the entire gradle file in a thread, in case anyone has the slighest idea 🙂
Thanks! 🙂Jérémy CROS
06/30/2021, 12:20 PMimport com.android.ide.common.repository.main
plugins {
kotlin("multiplatform") version "1.4.32"
id("com.android.library")
id("org.jmailen.kotlinter") version "3.4.5"
id("com.chromaticnoise.multiplatform-swiftpackage") version "2.0.3"
}
group = "me.jeremy"
version = "1.0-SNAPSHOT"
repositories {
google()
jcenter()
mavenCentral()
}
kotlin {
android()
ios {
binaries {
framework {
baseName = "shared"
}
}
}
sourceSets {
val commonMain by getting
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val androidMain by getting {
dependencies {
implementation("com.google.android.material:material:1.3.0")
}
}
val androidTest by getting {
dependencies {
implementation(kotlin("test-junit"))
implementation("junit:junit:4.13.2")
}
}
val iosMain by getting
val iosTest by getting
}
}
multiplatformSwiftPackage {
packageName("untitled")
swiftToolsVersion("5.3")
targetPlatforms {
iOS { v("13") }
}
outputDirectory(File(rootDir, "/testDifferentFolder"))
}
android {
compileSdkVersion(30)
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(24)
targetSdkVersion(30)
}
}
louiscad
06/30/2021, 12:45 PMJérémy CROS
06/30/2021, 12:52 PMandroid (:testDebugUnitTest)
: test fails with the same error message 😕louiscad
06/30/2021, 12:54 PMJérémy CROS
06/30/2021, 1:24 PMlouiscad
06/30/2021, 2:50 PMJérémy CROS
06/30/2021, 2:56 PMcoolcat
07/26/2021, 5:26 PMcoolcat
07/26/2021, 6:20 PMcoolcat
07/26/2021, 6:25 PM