Check the previous package name before the exception, and try to add it manually. Repeat the process until all required dependencies are installed.
The latest version of NewtonSoft.Json was causing the issue for me, I installed it manually and I was able to proceed.