I'm using old dependencies which can't be downloaded any more. But I have dependance package in ./gradle/caches/modules-2/files-2.1. But on grade build, gradle try to downloaded it in throws exception Could not find com.google.android:flexbox:1.1.1
How to run gradle with caches files?
You can add a dependency on a file in your file system. Eg
Probably best to also move it out of your cache folder and put it somewhere safer if it can't be easily re-obtained.