While I am importing gradle project in eclipse, it is giving 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 am using internet via proxy connection. If that is the issue, where to specify the proxy settings inside eclipse. In General-->Network connections, proxy settings are already there
Please help.
ANSWER#2:Providing the correct fix after two Negative markings
Make this changes to the top-level build.gradle file.
ANSWER#1 (Although this is not accepted would like to keep this)
If you see "peer not authenticated errors , it does not necessarily mean that the application does not hold a valid certificate. It also could mean that connections are being reset by the firewall, load balancer, or web servers. Try (re)starting the application with the
Administator
privilege.On Windows:
On Linux:
sudo "app execution script name"
Upgrading from java7 to java8 did the trick for me.
I had a strange case where I had to change the order of jcenter and maven to get rid of the error
Not working
Working
If you get any other error like this:
Then you need to import a certificate:
JDK_HOME/jre/lib/security
folderJDK_HOME/jre/lib/security
folderIt will prompt you to import the certificate, type yes and press enter.
Then restart your eclipse and try building the project.
I'm using android studio 1.51 with Linux (Ubuntu 14.04 LTS) and got the same error message:
I tried to move
maven { url "https://jitpack.io" }
, set it to http instead of https, activated the "accept non-trusted certificates automatically", added the ssl certificate manually ... but still no luck.The solution was to switch from OpenJDK 7 to Oracle JDK 8:
(jdk-8u101-linux-x64.tar.gz) - http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
jdk1.8.0_101
/opt/
(nautilus hotkey: CTRL+L) and create a new folder "Oracle_Java". Maybe this requires root access, so open nautilus from the terimal withsudo nautilus
jdk1.8.0_101
to/opt/Oracle_Java
Follow the instructions from https://wiki.ubuntuusers.de/Java/Installation/Oracle_Java/Java_8/#Java-8-JDK: Do not forget to replace the version placeholder in the path with your versionjava -version
if your installation was successful.project structure
window by pressing the hotkey CTRL+SHIFT+ALT+S and go toSDK Location
. Here you can set the path to JDK, for example/opt/Oracle_Java/jdk1.8.0_101
That's it! :)
If anyone else runs into this, turning off my Kapersky antivirus did the trick for me.