Could not resolve all dependencies for configuration ':app:_debugApkCopy'

39,491

Solution 1

Try removing your dependencies and rebuilding the app again. Try Clean and rebuild.

Solution 2

I got the same problem.

react-native upgrade

Find the solution here: https://stackoverflow.com/a/34995870/5834287 - and it start works!

Share:
39,491
Yaron Goldshtein
Author by

Yaron Goldshtein

Updated on July 09, 2022

Comments

  • Yaron Goldshtein
    Yaron Goldshtein almost 2 years

    I'm new in Android Studio, I've tried to write to fire base and when android offered me something I accepted and then everything stop working and he didn't recognize any 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've already updated ths SDK and I think my dependencies are fine. Any other suggestion?

    edit: i find out that it happen after i copied code from somewhere and click on "alt + enter" and then accidentally click on some option whit "...api..." (i can't restore that).

    I copy the code to other computer and now it's working.

    Dependencies: dependencies

  • King of Masses
    King of Masses over 7 years
    tried but now luck. still i am getting the same error.
  • Kostya Vyrodov
    Kostya Vyrodov over 6 years
    You can try(in bash) : cd android && ./gradlew clean
  • Hiren Patel
    Hiren Patel almost 6 years
    This solution actual worked for me. I spent whole day for the solution. Thanks.