Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glide 升级 4.x 后,多选相册崩溃的解决方案 #560

Open
wdeo3601 opened this issue Sep 30, 2020 · 0 comments
Open

Glide 升级 4.x 后,多选相册崩溃的解决方案 #560

wdeo3601 opened this issue Sep 30, 2020 · 0 comments

Comments

@wdeo3601
Copy link

wdeo3601 commented Sep 30, 2020

这个库的多选相册使用的是 multipleimageselect,他引用的这个三方库已经很久没更新了,里边加载图片用的 glide 3.x 的版本,我把 multipleimageselect fork 了一份,升级了一下 glide。

如果 maven 中找不到 'com.wdeo3601:multiple-image-select:1.0.6' 的话,在工程根目录的 build.gradle 添加 maven 仓库:

allprojects {
    repositories {
        maven { url "https://dl.bintray.com/wdeo3601/maven" } //替换takePhoto中的多图选择lib 用到的 maven
    }
}

用法1:

implementation 'com.wdeo3601:multiple-image-select:1.0.6'
implementation('org.devio.takephoto:takephoto_library:4.1.0') {
  exclude module: 'multipleimageselect'
}

用法2:
把 takePhoto 作为本地 module 引入,然后修改 takePhoto 的 build.gradle

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation "androidx.appcompat:appcompat:$supportVersion"
    implementation 'com.soundcloud.android.crop:lib_crop:1.0.0'
    //替换 multipleimageselect
    implementation 'com.wdeo3601:multiple-image-select:1.0.6'

    implementation 'me.shaohui.advancedluban:library:1.3.2'
}

wdeo3601/MultipleImageSelect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant