I'm trying to configure Android Studio on a totally offline Windows PC , but got the error log :
Could not download gradle.jar(com.android.tools.build:gradle:3.1.0):No cached version available for offline mode
I google a lot for my question , most answers just disable offline mode , then download the Android Plugin for Gradle.
But I can't do it , my PC can't connect to network, is there any way to download the plugin independently and apply to Android Studio ? Or copy some files from another PC to mine ?
About this link : How to setup Android Studio to work completely offline?
This link does not help , most answers just enable offline mode , the accepted answer download a zip (I'm not sure is it a gradle.zip or an android-plugin-for-gradle.zip) and paste to ~/.gradle , but I had try to copy the ~/.gradle directory to my PC and did not help.