Search code examples
androidgradlecrashlyticsjitpack

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


Solution

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