I am trying to develop a simple android application using Android Studio 3.1.1. While building I am getting a sync failed error from gradle. The bottom Build panel shows this error message.
Could not HEAD 'http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8/1.2.0/kotlin-stdlib-jre8-1.2.0.pom'. Received status code 503 from server: Service Unavailable Enable Gradle 'offline mode' and sync project
In my organization the access to this CDN is blocked. I tried by enabling the 'offline mode', now I am getting this error.
No cached version of org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0 available for offline mode. Disable Gradle 'offline mode' and sync project
I downloaded the file kotlin-stdlib-jre8-1.2.0.pom, but I don't know where to put it so that Gradle can use it (as a cached version).
Is there any way to make this work when the CDN site is not accessible?
Or anyone know the windows folder where the gradle stores the cached libs?