An error occurred while setting up the android

I do not understand the error message I received, or how to solve it. When I try to create my project, I see the following 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 https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml.
         Could not GET 'https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml'.
            The target server failed to respond

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

I use Cordoba with an Ionic framework.

+4
source share
3 answers

This is a Java SSL connection error that I solved on Github here .

You need to add the appropriate SSL certificate in the java store for java in order to accept the connection.

Works great :)

+1
source

already fixed. @J Richard Snape thanks you for your help in my question. I updated my sdk and rebooted my computer. it worked. it looks like an isuue network.

0

In my case, it was because I was behind the proxy. After I connected to the open network, it worked fine.

0
source

All Articles