NEED HELP!! I have added a KMP project from the te...
# multiplatform
s
NEED HELP!! I have added a KMP project from the template in my Windows Android studio, I can run the Android app directly from the IDE run and can run the Desktop app with
gradle :composeApp:run
, I don't want iOS, but how can I run the web app, from module wasmJsMain, is it even possible to run it?
a
Have you tried with
./gradlew :composeApp:jsBrowserDevelopmentRun
?
s
It does not work
a
Do you see any errors in the logs? Hard to see what is the problem without it
a
Copy code
PS C:\Users\zwo7a\Downloads\KotlinProject\KotlinProject> ./gradlew jsBrowserDevelopmentRun
Starting a Gradle Daemon, 1 incompatible and 3 stopped Daemons could not be reused, use --status for details
Type-safe project accessors is an incubating feature.

> Configure project :composeApp
New 'wasm' target is Work-in-Progress and is subject to change without notice.
w: The following Kotlin/Native targets cannot be built on this machine and are disabled:
iosArm64, iosSimulatorArm64, iosX64
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.


> Configure project :shared
New 'wasm' target is Work-in-Progress and is subject to change without notice.
w: The following Kotlin/Native targets cannot be built on this machine and are disabled:
iosArm64, iosSimulatorArm64, iosX64
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.


FAILURE: Build failed with an exception.
Copy code
PS C:\Users\zwo7a\Downloads\KotlinProject\KotlinProject> ./gradlew :composeApp:jsBrowserDevelopmentRun                                 
Starting a Gradle Daemon, 1 incompatible and 6 stopped Daemons could not be reused, use --status for details
Type-safe project accessors is an incubating feature.

> Configure project :composeApp
New 'wasm' target is Work-in-Progress and is subject to change without notice.
w: The following Kotlin/Native targets cannot be built on this machine and are disabled:
iosArm64, iosSimulatorArm64, iosX64
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.


> Configure project :shared
New 'wasm' target is Work-in-Progress and is subject to change without notice.
w: The following Kotlin/Native targets cannot be built on this machine and are disabled:
iosArm64, iosSimulatorArm64, iosX64
To hide this message, add 'kotlin.native.ignoreDisabledTargets=true' to the Gradle properties.


FAILURE: Build failed with an exception.

* What went wrong:
Cannot locate tasks that match ':composeApp:jsBrowserDevelopmentRun' as task 'jsBrowserDevelopmentRun' not found in project ':composeApp'.
@sagar Did you solve this?
236 Views