mkosm
05/19/2020, 8:20 AMCould not resolve org.jetbrains:kotlin-react:16.13.0-pre.95-kotlin-1.4-M1
for all of my libs, even though I have included the required maven repositories. The lib exists on the maven server: https://kotlin.bintray.com/kotlin-js-wrappers/org/jetbrains/kotlin-react/16.13.0-pre.95-kotlin-1.4-M1/
I'm including my full build.gradle.kts
file. What am I doing wrong?turansky
05/19/2020, 9:16 AMrepositories {
jcenter()
maven("<https://kotlin.bintray.com/kotlin-js-wrappers>")
maven("<https://kotlin.bintray.com/kotlin-eap>")
maven("<https://kotlin.bintray.com/kotlin-dev>")
}
mkosm
05/19/2020, 9:22 AMmkosm
05/19/2020, 9:35 AMmaven("<https://kotlin.bintray.com/kotlin-dev>")
in my repos list, then the Gradle sync "succeeds" with the following error:
<ij_msg_gr>Gradle import errors<ij_msg_gr><ij_nav>C:\Users\Mike\IdeaProjects\MediaCastKotlinReceiver\build.gradle.kts<ij_nav><i><b>root project 'MediaCastKotlinReceiver': Unable to build Kotlin project configuration</b><eol>Details: org.gradle.internal.operations.BuildOperationQueueFailure: There was a failure while populating the build operation queue: Could not resolve all dependencies for configuration ':npm'.<eol>Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':npm'.<eol>Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.jetbrains.kotlinx:kotlinx-html:0.7.2-build-1716.<eol>Required by:<eol> project :</i>
Which makes sense, since kotlinx-html
is in the kotlin-dev
repo, but without it, it manages to find the other libs I'm usingturansky
05/19/2020, 11:34 AMmkosm
05/19/2020, 11:36 AMmkosm
05/19/2020, 12:16 PMkotlin.js.compiler=ir
in my gradle.properties
file. After I removed it, I got some other errors about missing dependencies used by other libs (I expected that Gradle would automatically pull them, but it didn't), so I manually added them:
implementation(npm("react-is", "16.13.0"))
implementation("org.jetbrains:kotlin-css:1.0.0-pre.95-kotlin-1.4-M1")
Now building with the old compiler works, but I still get the same error when trying the new compiler 😕Ilya Goncharov [JB]
05/19/2020, 4:28 PM./gradlew build
?
Seems that it is https://youtrack.jetbrains.com/issue/KT-37705mkosm
05/19/2020, 5:50 PMIlya Goncharov [JB]
05/20/2020, 6:43 AMmkosm
05/20/2020, 8:04 AMe: java.lang.IllegalStateException: IrSimpleFunctionPublicSymbolImpl for public cast/PlayerManager.addEventListener|7803447740104203147[0] is already bound
This is from some code that dukat
generated, but I guess that this is out of the original question's scope :PIlya Goncharov [JB]
05/20/2020, 8:17 AMmkosm
05/20/2020, 8:20 AMaddEventListener
functions I wasn't using as a workaround, and it now seems to work!mkosm
05/20/2020, 8:22 AMmkosm
05/20/2020, 9:19 AM