Android build fails after updating to cordova 5

I recently updated my cordova to version 5.x from 4.
Somehow the build process changed from using ant in version 4 to using gradle now - that is what i figured out.

Now my android build is always failing with this strange error:

Could not resolve all dependencies for configuration ‘:classpath’.
Could not resolve
Required by:
Failed to list versions for
Unable to load Maven meta-data from
Could not GET ‘’.
peer not authenticated

I checked the URL mentioned and it is accessible.

Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.0.0
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS: Windows 7 SP1
Node Version: v4.2.3

Any hints on this? THX

solving this took me 2 days, but finally i have the solution. You have to change the repository in your gradle build scripts to this:

repositories {
maven {
url “

1 Like

I solved the problem with build command : ionic build android – --ant

thanks and it is work.