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 com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
Failed to list versions for com.android.tools.build:gradle.
Unable to load Maven meta-data from Central Repository: co
m/android/tools/build/gradle/maven-metadata.xml.
Could not GET ‘https://repo1.maven.org/maven2/com/android/tools/bu
ild/gradle/maven-metadata.xml’.
peer not authenticated

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