Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Java Introduction to Functional Programming Java's Functional Toolset Using forEach

Lakshman Erukulla
Lakshman Erukulla
5,614 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,614 Points

Thank you Issue has been resolved.

Lakshman Erukulla
Lakshman Erukulla
5,614 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,614 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'.