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 trialLakshman Erukulla
5,689 PointsGetting 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
3 Answers
Lakshman Erukulla
5,689 PointsThank you Issue has been resolved.
Lakshman Erukulla
5,689 PointsNow 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
5,689 PointsIf I disable gradle offline mode . using below link: https://stackoverflow.com/questions/28712025/how-to-disable-gradle-offline-mode-in-android-studio
Lakshman Erukulla
5,689 PointsGetting 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.
-
What went wrong: Could not resolve all files for configuration ':testCompileClasspath'.
Could not resolve junit:junit:4.11. Required by: project : Could not resolve junit:junit:4.11. Could not get resource 'https://repo.maven.apache.org/maven2/junit/junit/4.11/junit-4.11.pom'. > Could not GET 'https://repo.maven.apache.org/maven2/junit/junit/4.11/junit-4.11.pom'. > repo.maven.apache.org
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 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'.
Grant Murphy
10,072 PointsGrant Murphy
10,072 PointsIn 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