The full text of this error is:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Solution:
View->ToolWindows->Gradle
turn off the following (just click):
Then File->Sync Project with Gradle Files (synchronize update)
Reference: https://www.jianshu.com/p/0885c7d2b54b