candy_check gem ruby 3+ `require': cannot load such file — google/api_client (LoadError)

I am using Ruby 3.0.1. I am trying to verify Google play store subscription.
I am facing the below error:

`require’: cannot load such file — google/api_client (LoadError)

I tried many solutions but did not get good luck solutions.

>Solution :

Yes, the same issue I faced while Play store receipt verification earlier.
Here is a solution:

  • Uninstall all previous versions of gem 'candy_check' from your system.

  • Uninstall gem 'google-api-client' installed versions

  • Add gem in your Gemfile like below

    gem 'candy_check', git: '', branch: 'upgrade/google-api-client'

  • Remove Gemfile.lock and install bundle: bundle install.

The same issue is mentioned in gem’s raised issues here

Leave a Reply