Angela Sanchez
Angela Sanchez

Reputation: 470

could not resolve all dependencies for configuration ':app:debugAPKCopy'

it seems that I got this problem when I try to run the app

the error

Upvotes: 38

Views: 173716

Answers (11)

user1801605
user1801605

Reputation: 441

Changed the buildToolsVersion from "33.0.0" to "33.0.2" worked for me.

Upvotes: 0

Mehrab Fajar
Mehrab Fajar

Reputation: 1

I have deleted this in the build.gradle module and it worked.

maven { url "https://maven.google.com" }

Upvotes: 0

m'hd semps
m'hd semps

Reputation: 684

Change jcenter() to mavenCentral() in project level build.gradle

Upvotes: 5

OtienoSamwel
OtienoSamwel

Reputation: 426

Make sure you have the right version of Android SDK Platform-tools installed. Your project might be configured for a different version. To do this got to Settings>android sdk> sdk tools > show package details, then choose the version compatible with your project and install it.

Upvotes: 1

Omkar
Omkar

Reputation: 3100

I also encountered this error.

This error resolved by updating Android Support Repository.

Another way to solve this error is go to your build.gradle file and check for warnings related to support version dependencies. then look for hint, make change as it suggested. In my case this error caused by support dependencies:-

  • compile 'com.google.android.gms:play-services-maps:9.0.0'

and I changed to :-

  • compile 'com.google.android.gms:play-services-maps:10.0.0'

Upvotes: 3

Bayar Şahintekin
Bayar Şahintekin

Reputation: 447

"Build > Clean Project" worked for me

Upvotes: 5

Shoaib Mushtaq
Shoaib Mushtaq

Reputation: 615

For me it was only a pending update of the Google Repository.Mine Android Support Repository was already updated, so i update Google repository and it works for me

Update the Google Repository!

Upvotes: 2

Mahdi Bashirpour
Mahdi Bashirpour

Reputation: 18833

This worked for me while opening Android Studio to resolve the dependencies

allprojects {
   repositories {
       mavenLocal()
       jcenter()
          maven {
           url 'https://maven.google.com'
          }
       maven {
           url "https://jitpack.io"
       }
       maven {
           // All of React Native (JS, Obj-C sources, Android binaries) is installed 
 from npm 
              url "$rootDir/../node_modules/react-native/android"
          }
      }
  }

Upvotes: 5

Bruno Bieri
Bruno Bieri

Reputation: 10256

For me it was only a pending update of the Android Support Repository.

Update the Android Support Repository!

Upvotes: 1

Egor tepikin
Egor tepikin

Reputation: 222

Install Android Support Repository in SDK Manager.

Add dedependencies to build.gradle file.

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'

Upvotes: 7

reza rahmad
reza rahmad

Reputation: 1039

This can happen when there is an error in an update. To fix it open android sdk manager and:

  • Uninstall android support repository
  • Install again android support repository

Upvotes: 37

Related Questions