I am getting the following error when I try to use gems in windows, and I also referred to this stackoverflow post and updated rubygems and rails. But nothing could solve t
rvm gemset clear and then bundle install worked for me!
rvm gemset clear
bundle install