首页 文章

无法解析配置的所有依赖项':app:debugAPKCopy'

提问于
浏览
13

我试图运行应用程序时似乎遇到了这个问题

the error

5 回答

  • 0

    更新中出现错误时可能会发生这种情况 . 要解决它,请打开android sdk manager并:

    • 卸载android支持存储库

    • 再次安装android支持存储库

  • 2

    在SDK Manager中安装 Android Support Repository .

    向build.gradle文件添加dedependencies .

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

    我也遇到过这个错误 .

    更新Android支持存储库导致此错误 .

    解决此错误的另一种方法是转到build.gradle文件并检查与支持版本依赖关系相关的警告 . 然后寻找暗示,按照建议做出改变 . 在我的情况下,由支持依赖项引起的此错误: -

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

    然后我改为: -

    • 编译'com.google.android.gms:play-services-maps:10.0.0'
  • 22

    对我来说,它只是 Android Support Repository 的待定更新 .

    Update the Android Support Repository!

  • 1

    在打开Android Studio以解决依赖关系时,这对我有用

    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"
              }
          }
      }
    

相关问题