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

前端 未结 7 1109
忘了有多久
忘了有多久 2020-11-30 11:28

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

相关标签:
7条回答
  • 2020-11-30 11:31

    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
    0 讨论(0)
  • 2020-11-30 11:31

    "Build > Clean Project" worked for me

    0 讨论(0)
  • 2020-11-30 11:45

    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'
    0 讨论(0)
  • 2020-11-30 11:48

    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'
    
    0 讨论(0)
  • 2020-11-30 11:51

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

    Update the Android Support Repository!

    0 讨论(0)
  • 2020-11-30 11:53

    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"
              }
          }
      }
    
    0 讨论(0)
提交回复
热议问题