Error: attribute 'package:contentScrim' not found
I don't know why exactly you would be getting that error, but this might be a good start.
https://stackoverflow.com/a/31180719/7900721
Otherwise I found this really good tutorial on mastering the coordinator layout which has a github repo with a bunch of great examples with the collapsing toolbar layout that helped me when I developed one.
http://saulmm.github.io/mastering-coordinator