Build the master branch using command "gradle build" failed

FAILURE: Build failed with an exception.

  • What went wrong: Could not resolve all dependencies for configuration ‘:reporting:reports’. > Could not resolve jquery:jquery.min:1.11.0.

Required by:

org.gradle:reporting:2.4-20141229033752+0000

Could not GET ‘http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.xml’.

Network is unreachable

Could not GET ‘https://repo.gradle.org/gradle/libs/jquery/jquery.min/1.11.0/jquery.min-1.11.0.pom’.

Network is unreachable

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Are you building in China by any chance? 

If so, the problem is that Google Fonts is blocked by the Great Firewall.

Hi Luke,

Thanks for your response.

Indeed I build from china but I’m using a proxy. The problem message tells that

Could not GET ‘http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.xml’ Could not GET ‘https://repo.gradle.org/gradle/libs/jquery/jquery.min/1.11.0/jquery.min-1.11.0.pom

Are you sure the above resources really exists? Can you tell me the blocked google fonts link to check if I can access it or not?

Best,

Yingshou

The above resources don’t, but the eventual resources do.

After trying http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.xml, which should 404, Gradle will try http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js which will succeed.

Can you get the Google error page for http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.xml in your browser? Does the http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js link work?


Hi Luke,

It’s 404 response from http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.xml, but I can access http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js without any problem.