-
Couldn't load subscription status.
- Fork 9
Open
Description
I'm using Android Studio on Linux with version:
Android Studio Narwhal | 2025.1.1
Build #AI-251.25410.109.2511.13665796, built on June 18, 2025
Runtime version: 21.0.6+-13391695-b895.109 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-64-generic
Ubuntu 24.04.2 LTS; glibc: 2.39
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 6
Registry:
ide.experimental.ui=true
com.android.studio.ml.activeModel=com.android.studio.ml.AidaModel
Non-Bundled Plugins:
kotest-plugin-intellij (1.3.96-2025.1)
org.jetbrains.compose.desktop.ide (1.8.0)
Current Desktop: KDE
I'm trying to run the examples that contain Native targets (kotest-multiplatform and kotest-native) running the Gradle task linuxX64Test.
The kotest-multiplatform example fails with:
Executing tasks: [:cleanLinuxX64Test, :linuxX64Test, --tests, io.kotest.examples.mpp.data.DataDrivenTest] in project /home/fri/kotest-examples-master/kotest-multiplatform
Starting Gradle Daemon...
Gradle Daemon started in 1 s 256 ms
> Task :cleanLinuxX64Test
> Task :checkKotlinGradlePluginConfigurationErrors
> Task :compileKotlinLinuxX64 UP-TO-DATE
> Task :linuxX64ProcessResources NO-SOURCE
> Task :linuxX64MainKlibrary UP-TO-DATE
> Task :compileTestKotlinLinuxX64 UP-TO-DATE
> Task :xcodeVersion SKIPPED
> Task :linkDebugTestLinuxX64 UP-TO-DATE
> Task :linuxX64Test FAILED
Error while processing test process output message "##teamcity[testFinished name='PythagTriple(a=3, b=4, c=5)' id='DataDrivenTest/PythagTriple(a=3, b=4, c=5)' parent_id='DataDrivenTest' duration='2' result_status='Success']
"
groovy.lang.MissingPropertyException: No such property: getStartTimeMillis for class: org.gradle.api.internal.tasks.testing.results.DefaultTestResult
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:65)
at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:65)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:329)
at KotlinMppTestLogger$_logTestEvent_closure1$_closure3.doCall$original(/tmp/ijKotlinTestLogger1.gradle:60)
at KotlinMppTestLogger$_logTestEvent_closure1$_closure3.doCall(/tmp/ijKotlinTestLogger1.gradle)
at KotlinMppTestLogger$_logTestEvent_closure1$_closure3.doCall$original(/tmp/ijKotlinTestLogger1.gradle)
at KotlinMppTestLogger$_logTestEvent_closure1$_closure3.doCall(/tmp/ijKotlinTestLogger1.gradle)
at java.base@21.0.6/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
While in the kotest-native example, the gradle sync task fails with:
e: file:///home/fri/kotest-examples-master/kotest-native/build.gradle.kts:14:1: Unresolved reference: kotest
Now, I commented out lines from 14 to 16 in build.gradle.kts, in order to
make gradle sync work, but then trying to run the test results in the
following error:
Executing tasks: [linuxX64Test] in project /home/fri/kotest-examples-master/kotest-native
Starting Gradle Daemon...
Gradle Daemon started in 1 s 343 ms
> Configure project :
testable target name linuxX64
testable target targetName linuxX64
testable disambiguationClassifier linuxX64
Todo native
> Task :checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :kspKotlinLinuxX64 SKIPPED
> Task :compileKotlinLinuxX64 UP-TO-DATE
> Task :linuxX64ProcessResources NO-SOURCE
> Task :linuxX64MainKlibrary UP-TO-DATE
> Task :kspTestKotlinLinuxX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':kspTestKotlinLinuxX64ProcessorClasspath'.
> Could not find io.kotest:kotest-framework-symbol-processor:6.0.0.M4.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/io/kotest/kotest-framework-symbol-processor/6.0.0.M4/kotest-framework-symbol-processor-6.0.0.M4.pom
- file:/home/fri/.m2/repository/io/kotest/kotest-framework-symbol-processor/6.0.0.M4/kotest-framework-symbol-processor-6.0.0.M4.pom
Required by:
root project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 13s
2 actionable tasks: 1 executed, 1 up-to-date
13:38:46: Execution finished 'linuxX64Test'.
So my question is:
How do I make Kotest work on Native platforms?
Metadata
Metadata
Assignees
Labels
No labels