【发布时间】:2026-02-23 15:30:02
【问题描述】:
我在我的 Android 应用程序中使用这个库。 (https://github.com/yazeed44/MultiImagePicker)
在此之前,我是这样将它添加到我的项目中的:
compile 'net.yazeed44.imagepicker:imagepicker:1.3.0'
据我所知,以这种方式导入它的问题是,我无法覆盖任何代码,因为在再次构建项目后我会丢失所有的代码。 (我需要更改一些代码)
出于这个原因,我已经下载了源代码,并将项目作为模块导入,名称为:'imagepicker'
在那之后,我已将此行添加到我的应用 build.gradle:
compile project(':imagepicker')
这是我的 settings.gradle(Android Studio 做到了)
include ':app', ':imagepicker'
完成后,我尝试运行项目,Android Studio 显示此错误:
Gradle 'Project' project refresh failed
Error:Plugin with id 'com.github.dcendents.android-maven' not found.
我不知道该怎么办。提前致谢
【问题讨论】:
标签: android maven android-studio gradle build