Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle build jitpack error android studio

I'm having problem with Gradle build since 2 days when I am build Gradle.

Error:

Could not HEAD 'https://jitpack.io/com/crashlytics/sdk/android/crashlytics/2.9.7/crashlytics-2.9.7.pom'. Received status code 522 from server: Origin Connection Time-out Enable Gradle 'offline mode' and sync project

Can anyone have any solution for this?

I have tried below commands/steps for the resolved issue:

  • Invalidate catches/Restarts
  • delete .gradle file and try again
  • delete .gradle and .android file from root and try again
  • try with offline sync

But Still not working.

Thanks in advance

like image 474
Sandip Avatar asked Oct 27 '25 12:10

Sandip


2 Answers

Issue has been resolve with below solution.

Just add 'www' on Main Gradle file.

 repositories {
    maven { url "https://www.jitpack.io" }

}

Source: https://github.com/jitpack/jitpack.io/issues/3973

like image 71
Sandip Avatar answered Oct 30 '25 03:10

Sandip


This is issue with jitpack DNS that came up recently. Its described in this issue, along with workaround solutions.

like image 22
Kuba Pawłowski Avatar answered Oct 30 '25 01:10

Kuba Pawłowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!