code: @WorkerThread
    public static LottieResult<LottieComposition> fromRawResSync(Context context, @RawRes int rawRes) {
      try {
        return fromJsonInputStreamSync(context.getResources().openRawResource(rawRes), rawResCacheKey(rawRes));
      } catch (Resources.NotFoundException e) {
        return new LottieResult<>(e);
      }
    }
docs: Parse an animation from raw/res. This is recommended over putting your animation in assets because
  it uses a hard reference to R.
  The resource id will be used as a cache key so future usages won't parse the json again.