I get following error when I was running an app within Android Studio 2.
Gradle tasks [:app:assembleDebug] Could not determine the dependencies of task \':app:cr
I was facing the same issue when integrating Firebase Cloud Store in my project. Inside the project level gradle, I added
classpath 'com.google.gms:google-services:4.0.1'
that fixed the issue.