I have an unstable internet connection so i want to work in Offline Mode. I build my project with internet connection and then turn on the Offline Mode. I did not change anything, but the build fails telling me some dependency that i don't have in my Gradle files is not cached.
No cached version listing for com.google.android.gms:play-services-basement:[15.0.1,16.0.0) available for offline mode.
I even added this in my dependencies but it didn't work. I guess that Gradle does not cache all the dependency tree but only the direct dependencies.
Is there a way to manually download these packages and copy to Gradle cache? Thanks.