Home > OS >  Intellij idea error when checking hyperskill project
Intellij idea error when checking hyperskill project

Time:07-19

I am currently working on Hyperskill (JetBrains academy) on Java Backend Developer track. Every project that I try to check from the Intellij Idea IDE gives me this error:

Failed to launch checking

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':Simple_Search_Engine-task:compileTestJava'.

Could not resolve all files for configuration ':Simple_Search_Engine-task:testCompileClasspath'. Could not find com.github.hyperskill:hs-test:release-SNAPSHOT. Searched in the following locations: - https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml - https://repo.maven.apache.org/maven2/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-SNAPSHOT.pom - https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/maven-metadata.xml - https://jitpack.io/com/github/hyperskill/hs-test/release-SNAPSHOT/hs-test-release-v8-g6845035-132.pom Required by: project :Simple_Search_Engine-task

  • 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.

BUILD FAILED in 3s

Task :Simple_Search_Engine-task:compileJava UP-TO-DATE Task :Simple_Search_Engine-task:processResources NO-SOURCE Task :Simple_Search_Engine-task:classes UP-TO-DATE Task :util:compileJava NO-SOURCE Task :util:processResources NO-SOURCE Task :util:classes UP-TO-DATE Task :util:compileTestJava NO-SOURCE Task :util:processTestResources NO-SOURCE Task :util:testClasses UP-TO-DATE Task :Simple_Search_Engine-task:compileTestJava FAILED 2 actionable tasks: 1 executed, 1 up-to-date

My project: https://drive.google.com/drive/folders/1xEV47YXdkVRUfB0JPSEkmcPtBbb5rbvJ?usp=sharing

Project from hyperskill: https://hyperskill.org/projects/66?track=12

I tried reinstalling the IDE or changing the project that I am working but the same errors. When I am uploading the solve directly on hyperskill website it works perfectly fine.

Here is also a video if it is more helpful: https://youtu.be/nvrpHuVq44A

Please help me! :D

CodePudding user response:

Could you please select JDK 17 as Gradle JVM in Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle? After that, please ensure that JDK 17 is selected as Project SDK in File | Project Structure.

CodePudding user response:

SOLUTION:

GO TO THE BUILD.GRADLE FILE FOR THIS PROJECT AND REPLACE THE FOLLOWING LINE:

'com.github.hyperskill:hs-test:release-SNAPSHOT'

WITH

'com.github.hyperskill:hs-test:master-SNAPSHOT'

SEEMS THAT THE RELEASE BRANCH HAS AN EROR, SO CHANGE IT TO MASTER

THEN OPEN UP INTELLIJ AND RESTART GRADLE AND IT SHOULD WORK

  • Related