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

想问作者 最新那一版可以无痕适配target29 30的 #2378

Closed
Lincaiqin0605 opened this issue Jun 2, 2022 · 2 comments
Closed

想问作者 最新那一版可以无痕适配target29 30的 #2378

Lincaiqin0605 opened this issue Jun 2, 2022 · 2 comments

Comments

@Lincaiqin0605
Copy link

Current use version?

当前使用的版本是多少?

感谢作者大大开源 ’

// api 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.8'
和 // api 'io.github.lucksiege:pictureselector:v3.0.6' // 适配targersdk = 30

我想知道使用哪个版本是还没有使用core:core-ktx:1.6.0 因为需要在app中的gradle中适配 

使用2.5.8 target <30 一切使用正常 如果targer =30 android12的相册加载不出(红米K40 必现)
使用3.0.6+的版本会出现issues中很多人提的问题   最终在app的 gradle中配置configurations.all {
    resolutionStrategy {
        force 'androidx.core:core-ktx:1.6.0'
        force 'androidx.core:core:1.6.0'
        force 'androidx.appcompat:appcompat:1.3.1'
        force "androidx.activity:activity:1.3.1"
        force "androidx.fragment:fragment:1.3.1"
        force 'androidx.recyclerview:recyclerview:1.2.1'
    }
}能解决 android12 targetSDK =30 打开相册正常 


不过因为我们是做提供sdk的厂商 所以对于app module模块控制最好是少些(真的麻烦您了)
但是又需要考虑target=30的情况 希望您能抽空回复一下哈 如果我没表述清楚的话请告知 我再重新组织语言

Will this problem occur in demo?

Demo能否复现这问题?


Describe the problem or provide an error log?

描述问题或提供错误log?


@LuckSiege
Copy link
Owner

3.0版本因为引入了下面3个库且版本较高 1.4.1,如果你项目里也有这几个库,就会导致版本冲突,只能使用force方法强制为你项目现有的版本

androidx.appcompat:appcompat
androidx.activity:activity
androidx.fragment:fragment

@Lincaiqin0605
Copy link
Author

3.0版本因为引入了下面3个库且版本较高 1.4.1,如果你项目里也有这几个库,就会导致版本冲突,只能使用force方法强制为你项目现有的版本

androidx.appcompat:appcompat
androidx.activity:activity
androidx.fragment:fragment

好的感谢 3.0以下版本有aar imp的链接么 十分感谢 暂时不用太高版本 怕其他用户对force保持警惕对接难度加大 我暂时保持2.5.8版本 如果作者大大有3.0以下最新的引用 方便告知一下么 感谢

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

2 participants