[英]candy_check gem ruby 3+ `require': cannot load such file -- google/api_client (LoadError)
I am using Ruby 3.0.1
.我正在使用Ruby 3.0.1
。 I am trying to verify Google play store subscription.我正在尝试验证 Google Play 商店订阅。 I am facing the below error:我面临以下错误:
`require': cannot load such file -- google/api_client (LoadError) `require': 无法加载此类文件 -- google/api_client (LoadError)
I tried many solutions but did not get good luck solutions.我尝试了很多解决方案,但没有得到好运的解决方案。
Yes, the same issue I faced while Play store receipt verification earlier.是的,我之前在 Play 商店收据验证时遇到了同样的问题。 Here is a solution:这是一个解决方案:
Uninstall all previous versions of gem 'candy_check'
from your system.从系统中卸载所有以前版本的gem 'candy_check'
。
Uninstall gem 'google-api-client'
installed versions卸载gem 'google-api-client'
安装版本
Add gem in your Gemfile like below在您的Gemfile中添加 gem,如下所示
gem 'candy_check', git: 'https://github.com/Badiapp/candy_check', branch: 'upgrade/google-api-client'
Remove Gemfile.lock and install bundle: bundle install
.删除 Gemfile.lock 并安装包: bundle install
。
The same issue is mentioned in gem's raised issues here gem 在这里提出的问题中提到了相同的问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.