I installed Android Studio 2.2 on a machine that does not have an internet connection. When a new project is created, I get a Gradle sync error. How to solve this problem?
1 answer
Go to:
Settings -> Build, Execution, Deployment -> Build tools -> Gradle
and mark the checkbox offline
however, all the same, in order for the offline mode to work, it is necessary that the gradle cache is already full. And for this it is necessary that it at least once started online.
You can try to take the cache from another machine by copying the ~/.gradle/caches - but not sure if it will work.
|