I have Gradle Multi module project for a Web App w...
# multiplatform
t
I have Gradle Multi module project for a Web App with the Server for JVM target and the client for Kotlin/Wasm. They both depend on a 'shared' module which contains only some data classes. 'shared' module - build.gradle
Copy code
plugins {
	alias(libs.plugins.kotlinMultiplatform)
	alias(libs.plugins.serialization)
}

kotlin {
	jvm()

	@OptIn(ExperimentalWasmDsl::class)
	wasmJs {
		browser()
	}
	
	sourceSets {
		commonMain {
			dependencies {
				implementation(libs.kotlinx.serialization)
			}
		}
	}
}
On Gradle reload i get the following error:
Copy code
:shared:jvmMain: Could not find org.jetbrains.kotlinx:kotlinx-serialization-json:0.3.
Required by:
    project :shared
:shared:jvmTest: Could not find org.jetbrains.kotlinx:kotlinx-serialization-json:0.3.
Required by:
    project :shared
:shared:wasmJsMain: Could not find org.jetbrains.kotlinx:kotlinx-serialization-json:0.3.
Required by:
    project :shared
:shared:wasmJsTest: Could not find org.jetbrains.kotlinx:kotlinx-serialization-json:0.3.
Required by:
    project :shared
What is the problem?
a
The version is 0.3, and there's no such version. Try using the latest version.