Sometimes, it's maybe one of the 3rd-party repositories having a downtime. My project has some jitpack.io libraries, and jitpack was down so the project couldn't build.
jitpack.io