I have two separated computers, the first having an internet access where the other one doesn't have. I used the one with internet access to install android studio build my android application where gradle caches all required dependencies. Then I managed to move the application along with the android studio and the .gradle
folder into the offline pc, then setting GRADLE_HOME
to the .gradle
directory. I'd also checked offline mode
in the android gradle setting of my project. But gradle still doesn't find its cached dependencies, saying:
Gradle sync failed: Could not download org.eclipse.jgit.jar ...: No cached version available for offline mode
Note that the above required dependency is already exist in the gradle cache.