Closed renaudcerrato closed 8 years ago
Hi
There was a bug in HttpClient library used by Gradle which caused this issue. It was fixed in Gradle 2.11 so upgrading should fix it.
Hi there!
I forgot to mention I'm using Gradle 2.4:
renaud@stealth:~/Workspace/project$ ./gradlew --version
------------------------------------------------------------
Gradle 2.4
------------------------------------------------------------
@renaudcerrato Any chance you could upgrade to Gradle 2.12?
2.12 doesn't seem to be an upgrade:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Gradle version 2.2 is required. Current version is 2.12. If using the gradle wrapper, try editing the distributionUrl in /home/renaud/Workspace/popsy/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip
Same issue with 2.2. My workstation is completely stucked - on JitPack dependencies.
Ah yes, if you upgrade to newer Gradle then the android plugin needs to be upgraded as well
classpath 'com.android.tools.build:gradle:2.0.0'
Indeed, using Gradle 2.12 on Android Gradle plugin 2.0.0 did the trick. Thanks! ᐧ
After clearing my gradle cache, all of the sudden I got
Error: Cause: peer not authenticated
on both Gradle (command line) and Android Studio. Here's the truncated stacktrace. It only happens only on my JitPack's dependencies:I already Googled for it a lot and I'm not behind a proxy, and the workaround to that known issue didn't solved it.
By commenting all my JitPack's dependencies, Gradle is'nt complaining anymore (though the build just fails of course).
The interesting thing is that using
http
instead ofhttps
, raise the same error (which is a non-sense):Using curl (or my navigator) doesn't show any error:
Any clue?