I am new to Android Studio, I tried to write to the fire base, and when the android offered me what I accepted, and then everything stopped working, and he did not recognize a single object.
I get this error:
**Error: A problem occurred configuring project ':app'.** > Could not resolve all dependencies for configuration ':app:_debugApkCopy'. > Could not find com.google.android.gms:play-services-appindexing:10.0.1.
I have already updated the SDK and I think my dependencies are fine. Any other suggestion?
edit : I find out that this happens after I copied the code from somewhere and press "alt + enter" and then accidentally click on some whit parameter "... api ..." (I cannot restore).
I copy the code to another computer and now it works.
Dependencies: 
java android android-studio sdk
Yaron goldshtein
source share