Peer not authenticated


(snowdream) #1

PC System: Win7
Java: JDK8
Gradle: 2.9

i have to work behind proxy.

when i run gradle clean --info under the project Android-IMSI-Catcher-Detector, i got the errors.

i suggest jitpack.io to support http,but not only https.

$ gradle clean --info
Starting Build
Settings evaluated using settings file 'D:\workspace\snowdream\Android-IMSI-Catcher-Detector\settings.gradle'.
Projects loaded. Root project using build file 'D:\workspace\snowdream\Android-IMSI-Catcher-Detector\build.gradle'.
Included projects: [root project 'Android-IMSI-Catcher-Detector', project ':AIMSICD']
Evaluating root project 'Android-IMSI-Catcher-Detector' using build file 'D:\workspace\snowdream\Android-IMSI-Catcher-Detector\build.gradle'.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'Android-IMSI-Catcher-Detector'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve io.freefair:gradle-plugins:2.0.0-beta5.
     Required by:
         :Android-IMSI-Catcher-Detector:unspecified
      > Could not resolve io.freefair:gradle-plugins:2.0.0-beta5.
         > Could not get resource 'https://jitpack.io/io/freefair/gradle-plugins/2.0.0-beta5/gradle-plugins-2.0.0-beta5.pom'.
            > Could not GET 'https://jitpack.io/io/freefair/gradle-plugins/2.0.0-beta5/gradle-plugins-2.0.0-beta5.pom'.
               > peer not authenticated
      > Could not resolve io.freefair:gradle-plugins:2.0.0-beta5.
         > Could not get resource 'https://jcenter.bintray.com/io/freefair/gradle-plugins/2.0.0-beta5/gradle-plugins-2.0.0-beta5.pom'.
            > Could not GET 'https://jcenter.bintray.com/io/freefair/gradle-plugins/2.0.0-beta5/gradle-plugins-2.0.0-beta5.pom'.
               > peer not authenticated

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

BUILD FAILED

Total time: 8.2 secs

snowdream@SNOWDREAM-PC /D/workspace/snowdream/Android-IMSI-Catcher-Detector (development)
$

(René Groeschke) #2

I think you have to configure the proxy username and password. Check the userguide how to do so at https://docs.gradle.org/current/userguide/userguide_single.html#N109F2

cheers,
René