// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
        jcenter { url "http://jcenter.bintray.com/" }
        google()
        flatDir {
            dirs 'libs'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
        jcenter { url "http://jcenter.bintray.com/" }
        google()
        flatDir {
            dirs 'libs'
        }
    }
}
Because of network restrictions, i cannot sync gradle and trying to make it completely offline. I have enabled offline mode for gradle. After executing it says No cached version of com.android.tools.build:gradle:3.1.4 available for offline mode.
How can i configure gradle-core-3.4.jar android gradle plugin in offline case ?
Any help appreciated.