For me, it was due to errors with prexisting dependencies not being in the correct updated version. Removing them, adding the new dependency and then adding those back solved it.