Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java

Lakshman Erukulla
Lakshman Erukulla
5,689 Points

Getting issues in IntelIJ IDE

Dear Team,

I am getting below error when importing this project in the IntelIJ IDE

Unknown host 'services.gradle.org'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project Learn about configuring HTTP proxies in Gradle

Please help

Regards, Lakshman E

Grant Murphy
Grant Murphy
10,072 Points

In IntelliJ go to File > Settings > Appearance & Behavior > System Settings > HTTP Proxy Then Enable following option Auto-detect proxy settings and then click ok.

Here is the stackoverflow thread for the same issue

3 Answers

Lakshman Erukulla
Lakshman Erukulla
5,689 Points

Thank you Issue has been resolved.

Lakshman Erukulla
Lakshman Erukulla
5,689 Points

Now getting below issue 12:17:21 PM: Executing task 'prepareSubmission'...

:compileJava :processResources NO-SOURCE :classes :compileTestJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all files for configuration ':testCompileClasspath'.

    Could not resolve junit:junit:4.11. Required by: project : No cached version of junit:junit:4.11 available for offline mode.

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

  • Get more help at https://help.gradle.org

BUILD FAILED in 4s 2 actionable tasks: 2 executed No cached version of junit:junit:4.11 available for offline mode. Disable Gradle 'offline mode' and sync project 12:17:27 PM: Task execution finished 'prepareSubmission'.

Lakshman Erukulla
Lakshman Erukulla
5,689 Points

Getting below error: 12:21:13 PM: Executing task 'prepareSubmission'...

:compileJava UP-TO-DATE :processResources NO-SOURCE :classes UP-TO-DATE :compileTestJava FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 1s 2 actionable tasks: 1 executed, 1 up-to-date Unknown host 'repo.maven.apache.org'. You may need to adjust the proxy settings in Gradle. Enable Gradle 'offline mode' and sync project Learn about configuring HTTP proxies in Gradle 12:21:15 PM: Task execution finished 'prepareSubmission'.