I found this warning after upgrading the latest android studio stable version
Error:Could not resolve all files for configuration \':app:xxxxxxxDebugCompil
I had the same problem, build -> clean project worked for me.