简体   繁体   English

任务 ':app:dataBindingMergeDependencyArtifactsDebug' 执行失败

[英]Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'

I added this library from GitHub into my android app:我将此库从 GitHub 添加到我的 android 应用程序中:

implementation 'com.github.quiin:unifiedContactPicker:1.0'

Now, this library uses other libraries from GitHub.现在,这个库使用来自 GitHub 的其他库。 When I run my app, it tells me that these internal libraries are not found, so I dig them up and find their dependencies and add them to my app's Gradle file.当我运行我的应用程序时,它告诉我没有找到这些内部库,所以我挖掘它们并找到它们的依赖项并将它们添加到我的应用程序的 Gradle 文件中。 But the problem is that they are not being detected and this is the error I am getting both times.但问题是它们没有被检测到,这是我两次都遇到的错误。

Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.任务“:app:dataBindingMergeDependencyArtifactsDebug”执行失败。

Could not resolve all files for configuration ':app:debugCompileClasspath'.无法解析配置 ':app:debugCompileClasspath' 的所有文件。 Could not find com.hootsuite.android:nachos:1.0.0.找不到 com.hootsuite.android:nachos:1.0.0。 Required by: project :app > com.github.quiin:unifiedContactPicker:1.0需要:项目:app > com.github.quiin:unifiedContactPicker:1.0

Possible solution:可能的解决方案:

Please help, I have been stuck at this for a long time and I need to use this dependency.请帮忙,我已经被困在这里很长时间了,我需要使用这个依赖项。 I have also tried using similar dependencies that fulfil my purpose but they all seem to have the same problem.我也尝试过使用类似的依赖来满足我的目的,但它们似乎都有同样的问题。 So I don't know if there's a problem with my project or the libraries.所以我不知道我的项目或库是否有问题。

I had the same problem but with geok library.我有同样的问题,但与geok库。 I checked syntax of dependencies declaration lines on JitPack website and there were different than I had on my build.gradle file.我在JitPack网站上检查了依赖项声明行的语法,发现与我在 build.gradle 文件中的语法不同。 Finally I changed最后我改变了

from:从:

implementation "com.github.piruin:geok:$geokVersion"
implementation "com.github.piruin.geok-gson:$geokVersion"

to:至:

implementation "com.github.piruin.geok:geok:$geokVersion"
implementation "com.github.piruin.geok:geok:$geokVersion"

and it works.它有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM