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
我在打包一个module为aar时发现glide无法完全导出 #393
Comments
试试这个 |
感谢您的回复,但是加了这个编译报错 > Cannot add task 'explodeAndroidx.lifecycleLifecycle-viewmodelDebug' as a task with that name already exists. |
将工程有依赖androidx.core:core的去掉,你可以看看这个报错,希望对你有帮助。#347 |
尝试解决办法1: |
可以不可以编译的时候用compile only,然后让客户端那边imp一个指定版本的glide呢 |
可以考虑把这个图片加载框架抽象一个接口出来,让sdk的用户去实现,或者去github下载glide下来改包名,重新编译一个本地库进行合并 interface ImageLoadCallback { |
embed ('com.github.bumptech.glide:glide:4.13.2')
这种打包出来的aar glide中会少了gif包下面的所有文件,使得使用相关库的闪退,虽然这个库为常用库,但因为我方是开发sdk的,所以为了方便只要求用户导入远程依赖的一个库。
The text was updated successfully, but these errors were encountered: