Build fails on Android - could not resolve all files for configuration

Having the same error for a while now, none of the solutions above actually helped me.
Somebody got another solution, or even the cause of it?