Paragraph not authenticated when importing Gradle project into eclipse

While I import the gradle project into eclipse, it gives me this error.

FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'test'. > Could not resolve all dependencies for configuration ':classpath'. > Could not resolve de.richsource.gradle.plugins:gwt-gradle-plugin:0.3. Required by: :test:unspecified > Could not GET 'https://github.com/steffenschaefer/gwt-gradle-plugin/raw/maven-repo/de/richsource/gradle/plugins/gwt-gradle-plugin/0.3/gwt-gradle-plugin-0.3.pom'. > peer not authenticated * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

I use the Internet through a proxy connection. If this is a problem, where to specify the proxy server settings inside eclipse. In general β†’ Network connections, proxy settings already exist

Please, help.

+49
java android-gradle build.gradle gradle gradle-eclipse android-gradle-plugin
Apr 05 '14 at 22:45
source share
9 answers

If you get any other error, for example:

  Could not GET 'https://some_server.com/some/path/some.pom'. > peer not authenticated 

Then you need to import the certificate:

 keytool -import -alias <the short name of the server> -file <cert_file_name_you_exported.cer> -keystore cacerts -storepass changeit 

It will ask you to import the certificate, type yes and press enter.

Then restart your eclipse and try creating a project.

+65
Apr 05 '14 at 23:02
source share

ANSWER # 2: Providing the correct correction after two negative marks

Make these changes to the top level build.gradle file.

 // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { //jcenter() jcenter { url "http://jcenter.bintray.com/" <=THIS IS THE LINE THAT MAKES THE DIFFERENCE } } } allprojects { repositories { //jcenter() jcenter { url "http://jcenter.bintray.com/" <=THIS IS THE LINE THAT MAKES THE DIFFERENCE } } } 

ANSWER # 1 (Although this is not accepted, I would like to keep it)

If you see "errors without authentication", this does not necessarily mean that the application does not have a valid certificate. It may also mean that connections are reset by a firewall, load balancer, or web server. (re) starting an application with Administator privilege.

On Windows:

  • Make sure you have administrator rights.
  • Right-click the application icon β†’ Choose Run as Administrator

On Linux:

  • Make sure you have root access.
  • type sudo "app execution script name"
+19
Jul 21 '15 at 18:58
source share

Change your repositories to the next one in build.gradle

 repositories { maven { url "http://repo1.maven.org/maven2" } } 
+13
Apr 28 '15 at 9:19
source share

After importing the certificate, as suggested in the answer above, edit the gradle.properties file and insert the following lines (referring to the proxy server settings):

HTTPS:

 systemProp.https.proxyHost=www.somehost.org systemProp.https.proxyPort=8080 

HTTP:

 systemProp.http.proxyHost=www.somehost.org systemProp.http.proxyPort=8080 
+6
01 Oct '14 at 7:37
source share

The upgrade from java7 to java8 did the trick for me.

+3
Apr 19 '16 at 8:29
source share

I am trying to change the repositories and import cer in java, but both failed, then I upgrade the jdk version from 1.8.0_66 to 1.8.0_74, gradle. Build Success.

+1
Mar 22 '16 at 8:11
source share

I am using android studio 1.51 with Linux (Ubuntu 14.04 LTS) and received the same error message:

 Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugCompile'. > Could not resolve com.github.PhilJay:MPAndroidChart:v2.1.6. Required by: dbtraining-dbtrainingandroidapp-517de26197d8:app:unspecified > Could not resolve com.github.PhilJay:MPAndroidChart:v2.1.6. > Could not get resource 'https://jitpack.io/com/github/PhilJay/MPAndroidChart/v2.1.6/MPAndroidChart-v2.1.6.pom'. > Could not GET 'https://jitpack.io/com/github/PhilJay/MPAndroidChart/v2.1.6/MPAndroidChart-v2.1.6.pom'. > peer not authenticated 

I tried to move maven { url "https://jitpack.io" } , set it to http instead of https, activate "accept certificates without verification", add the ssl certificate manually ... but still no luck.

The solution was to upgrade from OpenJDK 7 to Oracle JDK 8:

 sudo update-alternatives --install "/usr/bin/java" "java" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/javaws" 1 sudo update-alternatives --install "/usr/bin/jar" "jar" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/jar" 1 sudo update-alternatives --set "java" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/java" sudo update-alternatives --set "javac" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/javac" sudo update-alternatives --set "javaws" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/javaws" sudo update-alternatives --set "jar" "/opt/Oracle_Java/jdk1.8.0_VERSION/bin/jar" 
  1. You can check the terminal using the java -version if your installation is successful.
  2. Now, to return to android studio and open the project structure by pressing the hot key CTRL + SHIFT + ALT + S and go to the SDK Location . Here you can set the path to the JDK, for example /opt/Oracle_Java/jdk1.8.0_101

Change jdk version / path in android studio

What is it!:)

0
Aug 03 '16 at 22:03
source share

I had this error and this was due to a problem with the VPN proxy. I disconnected my VPN client and after that everything worked. I used this command (on Mac):

sudo /opt/cisco/anyconnect/bin/acwebsecagent -disablesvc -websecurity

0
Sep 14 '16 at 10:22
source share

Updating to the latest version of gradle is fixed for me.

  • update distributionUrl in gradle-wrapper.properties to use the latest version.
  • update gradleVersion in build.gradle to match this version.
0
Feb 23 '17 at 14:28
source share



All Articles