简体   繁体   English

如何修复无法解析“de.hdodenhof:circleimageview:2.2.0.”的依赖关系。

[英]how to fix Unable to resolve dependency for 'de.hdodenhof:circleimageview:2.2.0.'

Why doesn't this dependency为什么没有这个依赖

implementation 'de.hdodenhof:circleimageview:2.2.0'

sync with my project ?与我的项目同步?

i am not sure about the exact issue but just read the library document again. 我不确定确切的问题,只是再次阅读图书馆文件。 but you can add these lines in maven 但您可以在Maven中添加这些行

 { url "https://jitpack.io" } 

all code will be like 所有代码都会像

 repositories {
    maven { url "https://jitpack.io" }
}

repositories in app level gradle folder 应用程序级别gradle文件夹中的存储库

Add mavenCentral , jcenter and jitpack in repositories in build.gradle file build.gradle文件的repositories中添加mavenCentraljcenterjitpack

like this: 像这样:

repositories {
mavenCentral()
jcenter()
 maven { url "https://jitpack.io" }
}

暂无
暂无

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

相关问题 无法解决:de.hdodenhof:circleimageview:2.1.0 - Failed to resolve: de.hdodenhof:circleimageview:2.1.0 如何在片段中使用 CircleImageView 库(这个:'de.hdodenhof:circleimageview:3.1.0')? - How to use CircleImageView library ( this : 'de.hdodenhof:circleimageview:3.1.0' ) inside fragment? 如何适应 hdodenhof circleimageview - How to fit hdodenhof circleimageview 膨胀类de.hdodenhof.circleimageview.CircleImageView时出错 - Error inflating class de.hdodenhof.circleimageview.CircleImageView 如何在CircleImageView(hdodenhof / CircleImageView)中设置drawable? - How can i set a drawable in a CircleImageView (hdodenhof/CircleImageView)? 在 Android 版本 6 棉花糖中膨胀类 de.hdodenhof.circleimageview.CircleImageView 时出错 - Error inflating class de.hdodenhof.circleimageview.CircleImageView in Android version 6 marshmallow 尝试在 null object 参考上调用虚拟方法“void de.hdodenhof.circleimageview.CircleImageView.setOnClickListener…” - Attempt to invoke virtual method 'void de.hdodenhof.circleimageview.CircleImageView.setOnClickListener… ' on a null object reference 无法添加依赖:无法解决:androidx.lifecycle:lifecycle-extensions:2.2.0-rc2 - Unable to add dependency: Failed to resolve: androidx.lifecycle:lifecycle-extensions:2.2.0-rc2 如何修复“错误:无法解析‘:app@debug/compileClasspath’的依赖关系:。” 安卓中的错误 - How to fix "ERROR: Unable to resolve dependency for ':app@debug/compileClasspath':." Error in Android 无法解决依赖性错误 - Unable to resolve dependency error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM