Ionic build android is not working throw error

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

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

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