Subject: Issue with Gradle Build for Kotlin Compil...
# compiler
d
Subject: Issue with Gradle Build for Kotlin Compiler v1.9.21 Hi everyone, I'm a developer from Korea working with Android and recently I've become interested in the Kotlin compiler. I've cloned the Kotlin repository from GitHub and am trying to debug it. However, I'm encountering a build error while trying to build Kotlin compiler v1.9.21 using IntelliJ IDEA. The error message is as follows:
Copy code
:kotlin-test:kotlin-test-js:main: Could not resolve project :kotlin-stdlib.
Required by:
    project :kotlin-test:kotlin-test-js
    project :kotlin-test:kotlin-test-js > project :kotlin-test:kotlin-test-common
    project :kotlin-test:kotlin-test-js > project :kotlin-test:kotlin-test-annotations-common

Possible solution:
 - Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
Context: 1. I checked out the branch tagged with Kotlin compiler v1.9.21. 2. I attempted to build the project in IntelliJ IDEA and used the "Reload All Gradle Projects" option. Issue: It appears that the
kotlin-stdlib
project cannot be resolved. Could anyone advise on how to resolve this issue? Thank you in advance!
d
How exactly did you build the project? If via Build button in intellij, then that's the problem The Kotlin project is intended to be built with gradle, so you need to run
./gradlew dist
task to build it (in terminal or with IDE UI)
👍 1
d
I clicked the "Reload All Gradle Projects" button in the Gradle menu in IntelliJ IDEA. Running the
./gradlew dist
command successfully built the project. Thank you!
👌 1