Failed to resolve all dependencies for configuration: app: _debugApkCopy '

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: addictions

+7
java android android-studio sdk
source share
2 answers

Try removing your dependencies and restoring the application again. Try to clean and rebuild.

+15
source share

Removal fixed with my problem. So just remove the compilation com.google.android.gms: play-services-appindexing: 10.2.6 '' from your project. Build. And run. Should be fine then

0
source share

All Articles