I kept getting the same error and couldn't add the provider to the dependencies. I tried different ways, but it didn’t work. Finally, I found the solution. Here’s the error:
The solution was simple. I had named the project 'Provider.' Changing the project name to something else fixed the problem.