@NonNull @Override public File getCacheDir() {
          File file = fileCacheProvider.getCacheDir();
          if (!file.isDirectory()) {
            throw new IllegalArgumentException("cache file must be a directory");
          }
          return file;
        }
Provide your own network cache provider. By default, animations will be saved in your application's cacheDir/lottie_network_cache.
lottie/src/main/java/com/airbnb/lottie/LottieConfig.java