Gradle Build Error

Answered

Hello, I am new to IntelliJ. I am working on existing project. When I build the project  it is always failed with the error message:

Could not GET 'http://buildserver/gradle/common.gradle'. Received status code 503 from server: DNS Fail
Enable Gradle 'offline mode' and sync project.

We have common scripts on build server and we have a statement on build.gradle:

apply from: "${common_scripts}common.gradle"

I am working through company VPN. I can ping the build server and I have access to it. I requested IT department
for help and the problem did not find.

Please help if anyone have such experience. Thanks in advance!

elynchen
0
1 comment

>Received status code 503 from server: DNS Fail

503 HTTP error code means that the remote service is not available. And looks like the reason is: "DNS Fail" - your computer can not reach remote server because of DNS resolution issue.

Can you build from Gradle from command line? Is the buildserver can be opened in browser, can you access the mentioned file via HTTP: "http://buildserver/gradle/common.gradle"?

If you have proxies in network, make sure to configure it in IDE settings.

0

Please sign in to leave a comment.