I’ve got two Ubuntu 16.04 machines. One is connected to the Intenet, while the other one is fully offline. I’d like to build an Android project on the offline machine. On the online machine, it builds successfully. So, I’ve copied whole
.gradle to the offline machine and run build process with
--offline flag. Surprisingly it fails: Lots of
No cached version of ....
I suspect it’s because of the hash algorithm used to generate hash for each
.pom, etc. I think hashes are different from one to another machine. Also note that my username and machine name is different in this two. It looks like hashes are related to the username. Am I right? Is there a clean solution to get the project built on the offline machine?
- Gradle 4.0-bin
- com.android.tools.build 2.3.0