Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build fail problem #64

Open
davyzhu opened this issue Aug 12, 2021 · 7 comments
Open

Gradle build fail problem #64

davyzhu opened this issue Aug 12, 2021 · 7 comments

Comments

@davyzhu
Copy link

davyzhu commented Aug 12, 2021

Hi, I tried to do AtomicKotlin exercises by EduTools plugin. But after open the project, Gradle build failed. In Gradle settings, Gradle JVM is set to #JAVA_INTERNAL[Invalid]
Any suggestion, thanks!

Build file 'C:\Users\zhu_s\IdeaProjects\AtomicKotlin\build.gradle' line: 28
A problem occurred evaluating root project 'AtomicKotlinCourse'.

Could not find method compile() for arguments [org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.20] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

image

image

image

@imsyf
Copy link

imsyf commented Aug 15, 2021

@davyzhu I managed to get it working by just simply replacing the build.gradle file in the root directory of AtomicKotlin project on my local storage with the build.gradle file from this repository.

I think the older build script is incompatible with newer version of Gradle.

@davyzhu
Copy link
Author

davyzhu commented Aug 15, 2021

@imsyf Thank you! #52

@davyzhu I managed to get it working by just simply replacing the build.gradle file in the root directory of AtomicKotlin project on my local storage with the build.gradle file from this repository.

I think the older build script is incompatible with newer version of Gradle.

@jamesward
Copy link

Where'd you get the sources from?

@agaltsoff
Copy link

agaltsoff commented Sep 19, 2021

I encountered the same problem after installing IntelliJ IDEA Community Edition and Atomic Kotlin course via Edu Tools plugin from scratch on Win10 x64 box.

Something from this list helped me:

  1. Changing JDK 17 for JDK 16 since IDE annotations were from v16 and I didn't manage to find v17 annotations quickly.
  2. Setting Gradle JVM to version 16 since it was invalid just as topic starter said.
  3. Setting ext.kotlin_version in build.gradle from '1.5.20' to '1.5.10' since this version came with Kotlin plugin and this line produced a warning Kotlin version that is used for building with Gradle (1.5.20) differs from the one bundled into the IDE plugin (1.5.10)

I think the last change made the final trick because after loading Gradle changes the whole bunch of stuff came in and though one build.gradle line still caused two errors

Cannot resolve symbol 'TestDescriptor'
Cannot resolve symbol 'TestResult'

it didn't prevent successfull build.

@BruceEckel
Copy link
Collaborator

BruceEckel commented Sep 19, 2021 via email

@agaltsoff
Copy link

All errors vanished after updating Kotlin to the latest version 1.5.31 and setting ext.kotlin_version back to 1.5.20. Honestly to update Kotlin was my first intent but I was somehow mislead by "bundled into the IDE plugin" in warning text. So I was looking for Kotlin in plugin settings instead of File - Settings - Languages & Frameworks.

I encountered the same problem after installing IntelliJ IDEA Community Edition and Atomic Kotlin course via Edu Tools plugin from scratch on Win10 x64 box.

Something from this list helped me:

1. Changing JDK 17 for JDK 16 since IDE annotations were from v16 and I didn't manage to find v17 annotations quickly.

2. Setting Gradle JVM to version 16 since it was invalid just as topic starter said.

3. Setting ext.kotlin_version in build.gradle from '1.5.20' to '1.5.10' since this version came with Kotlin plugin and this line produced a warning `Kotlin version that is used for building with Gradle (1.5.20) differs from the one bundled into the IDE plugin (1.5.10) `

I think the last change made the final trick because after loading Gradle changes the whole bunch of stuff came in and though one build.gradle line still caused two errors

Cannot resolve symbol 'TestDescriptor'
Cannot resolve symbol 'TestResult'

it didn't prevent successful build.

@EmperorKonstantin
Copy link

EmperorKonstantin commented Jul 1, 2024

AtomicKotlin exercises in the EduTools plugin are still broken, however opening this repo the [Check] button works just fine. However, all of the problem sets have their answers in them. How do you compile/build this course and open it properly in EduTools as a course instead of a project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants