# Gradle offline mode running error No cached version

**URL:** <https://discuss.gradle.org/t/gradle-offline-mode-running-error-no-cached-version/30418>\
**Category:** Help/Discuss\
**Created:** [February 1, 2019, 9:55am UTC](https://discuss.gradle.org/t/gradle-offline-mode-running-error-no-cached-version/30418 "2019-02-01T09:55:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GANERAO](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@GANERAO](https://discuss.gradle.org/u/GANERAO)\
**Post date:** [February 1, 2019, 9:55am UTC](https://discuss.gradle.org/t/gradle-offline-mode-running-error-no-cached-version/30418/1 "2019-02-01T09:55:49Z")

</div>

I am running gradle build as mentioned below  
`gradlew -Dgradle.user.home=C:/applications/gradle_home/gradle/user_home`  
after that i have changed to offline mode as mentioned below  
`gradlew -Dgradle.user.home=C:/applications/gradle_home/gradle/user_home --offline`  
In both of the above case build is passing but when i copy the gradle home(C:/applications/gradle\_home/gradle/user\_home) to different machine and run below command build is failing  
`gradlew -Dgradle.user.home=C:/applications/gradle_home/gradle/user_home --offline`

Error Msg :No cached version of xxxxxxx available for offline mode.

---

<div class="post-metadata">

**Author:** ![mpnewcomb](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mpnewcomb](https://discuss.gradle.org/u/mpnewcomb)\
**Post date:** [March 8, 2019, 6:30pm UTC](https://discuss.gradle.org/t/gradle-offline-mode-running-error-no-cached-version/30418/2 "2019-03-08T18:30:44Z")

</div>

Good luck trying to get anyone to plainly address this issue… I mean, gradle downloads everything to your machine and then executes… but moving that SAME data to another machine is like asking to solve cold fusion or something… why have an --offline argument if you can never build offline.
