I think there must be a bug with the 27.1.0 v7 support lib, just released. After updating my project to use it (from 26.1.0), I keep getting this compilation error:
Simply updating all my dependencies, cleaning and rebuilding the project did the trick for me. I think there's some kind of dependency/library conflict going on. An outdated library may be trying to use an older version of support library while you are trying to use a newer version somewhere else.