Dependencies cannot be applied

For future reference
Running gradle idea solved this for me.