Rails bundle installのconflictエラー対応メモ

ActiveAdminで使うGemを追記してbundle installしたときの対応メモ。

  1. bundle installコマンドを実行すると、以下のエラーが表示される。
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
  1. Gemfileファイルで指定しているバージョンをすべて外して保存する。

  2. gem listコマンドでバージョン確認後、gem cleanupコマンドを実行する。

  3. bundle updateコマンドを実行する。そして解決。