首页 > 解决方案 > Gradle Sync 无法解决:exifinterface - myhexaville 智能图像选择器

问题描述

在此处输入图像描述

当我使用此依赖项'com.myhexaville:smart-image-picker:1.0.3'时出现此错误当我评论此依赖项时,gradle 同步成功。请为我建议一个适当的解决方案来解决这个问题。

标签: javaandroiddependency-injectiondependencies

解决方案


将 Google 的 Maven 存储库添加到项目的 build.gradle 文件中:

allprojects {
        repositories {
            jcenter()
            maven {
                url "https://maven.google.com"
            }
        }
    }

如果您使用的是 android-studio 3.0 或更高版本,请使用:

allprojects {
        repositories {
            jcenter()
            google()
        }
    }

推荐阅读