Tiago Nunes
05/06/2021, 10:11 AMAndyeshiet
05/06/2021, 11:59 AMruntime assert: runtime injected twice
edwinRNDR
05/06/2021, 9:19 PMpublishJvmPublicationToMavenLocal
. I suspect this behavior is introduced in Kotlin 1.5.0. How do I get the jvm modules to publish, or is turning all submodules into mpp a better option?adjorno
05/07/2021, 7:29 AMThe consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'. However we cannot choose between the following variants of security:multiplatform:1.0.0:
- jvmApiElements-published
- jvmRuntimeElements-published
- releaseApiElements-published
- releaseRuntimeElements-published
- Variant 'releaseApiElements-published' capability security:multiplatform:1.0.0 declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release':
- Unmatched attributes:
- Provides attribute 'com.android.build.api.attributes.VariantAttr' with value 'release' but the consumer didn't ask for it
- Provides release status but the consumer didn't ask for it
- Provides attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but the consumer didn't ask for it
I would expect that Gradle would request for androidJvm platform so the dependency can be resolved. But it states that “consumer did not ask for it”. Does anybody know what is the issue and how to solve it.Arkangel
05/07/2021, 11:53 AMTiago Nunes
05/07/2021, 12:30 PMFirebase.firestore.collection("rocketLaunches").add(sampleLaunch)
this line gives this build error:
e: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: wrong bytecode generated
@Lorg/jetbrains/annotations/Nullable;() // invisible
// annotable parameter count: 1 (visible)
// annotable parameter count: 1 (invisible)
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 0
Animesh Sahu
05/07/2021, 1:10 PMribesg
05/07/2021, 2:44 PMThe Kotlin source set androidAndroidTestRelease was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>
krzysztof
05/07/2021, 3:18 PMopen
functions have the same signature?Jawid
05/07/2021, 3:53 PMThe feature "multi platform projects" is experimental and should be enabled explicitly
warning in IntelliJ IDEA (Android Studio)? Thanksxxfast
05/08/2021, 2:36 AMKieran Macdonald Hall
05/08/2021, 10:24 AMAnimesh Sahu
05/09/2021, 6:32 AMval linuxSettings: org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget.() -> Unit = {
val main by compilations.getting
main.cinterops.create("x11") { defFile("src/linuxCommonMain/cinterop/cinterop.def") }
}
linuxX64(configure = linuxSettings)
linuxArm64(configure = linuxSettings)
linuxArm32Hfp(configure = linuxSettings)
Does not work 🤐 The package is inaccessible from
val linuxCommonMain by sourceSets.creating { dependsOn(commonMain) } <<----
val linuxX64Main by sourceSets.getting { dependsOn(linuxCommonMain) }
val linuxArm64Main by sourceSets.getting { dependsOn(linuxCommonMain) }
val linuxArm32HfpMain by sourceSets.getting { dependsOn(linuxCommonMain) }
I do have
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
in gradle.properites, and platform.posix works, so I guess cinterop should've been considered 🤔 But its not :blob-thinking-upside-down:Andyeshiet
05/09/2021, 10:11 AMWolfgang
05/09/2021, 1:20 PMModule not found: Error: Can't resolve 'kotlinx-serialization-kotlinx-serialization-core-jsLegacy' in kotlin-dce-dev
someone knows a solution for this?bod
05/09/2021, 3:04 PMplugins { kotlin("multiplatform") version "1.5.0"
, I'm getting The feature "sealed interfaces" is only available since language version 1.5
?Michal Klimczak
05/09/2021, 8:49 PMcommonMain
module. I want to be a good citizen and not break android or js targets for people using this lib - do I need to provide a no-op js target as well for compatibility (at least for the target that's gonna be used in commonMain
)? Or is there some magic that should work it out automatically?maarten ha
05/10/2021, 11:33 AMmboudraa
05/10/2021, 6:34 PMNapa Ram
05/11/2021, 6:23 AMPaul Woitaschek
05/11/2021, 10:27 AMBerkan
05/11/2021, 1:54 PMAkshat Sharma
05/12/2021, 12:02 AMArjan van Wieringen
05/12/2021, 8:41 AMAkshat Sharma
05/12/2021, 8:57 AMMike
05/12/2021, 12:09 PMsendoav
05/12/2021, 3:35 PMSlackbot
05/12/2021, 7:32 PMJeff Tycz
05/13/2021, 1:15 AMRémy
05/13/2021, 5:17 PMRémy
05/13/2021, 5:17 PMExecution failed for task ':shared:cinteropAFNetworkingIos'.
> Could not resolve all files for configuration ':shared:iosAFNetworkingCInterop'.
> Could not find runtime-0.4.0-build188-samplessources.jar (org.jetbrains.compose.runtime:runtime:0.4.0-build188).
Searched in the following locations:
<https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/runtime/runtime/0.4.0-build188/runtime-0.4.0-build188-samplessources.jar>
> Could not find foundation-0.4.0-build188-samplessources.jar (org.jetbrains.compose.foundation:foundation:0.4.0-build188).
Searched in the following locations:
<https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/foundation/foundation/0.4.0-build188/foundation-0.4.0-build188-samplessources.jar>
> Could not find material-0.4.0-build188-samplessources.jar (org.jetbrains.compose.material:material:0.4.0-build188).
Searched in the following locations:
<https://maven.pkg.jetbrains.space/public/p/compose/dev/org/jetbrains/compose/material/material/0.4.0-build188/material-0.4.0-build188-samplessources.jar>
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
I see that following location to download dependencies add a -samplessources
...
Do you have an idea please 🤔 ?russhwolf
05/13/2021, 5:38 PMRémy
05/13/2021, 5:43 PMapi(compose.runtime)
api(compose.foundation)
api(compose.material)
And the build works!
Thank you @russhwolfrusshwolf
05/13/2021, 5:43 PM