Invalidate Caches / Restart
didn't work for me this time.
Found a solution like this:
Remove the compile ***
or implementation ***
line in build.gradle.
Clean and rebuild. Errors should be raised here.
Add the line in step 1 back to build.gradle.
Clean and rebuild.
Weird...