版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/u012400885/article/details/82830993
LZ-Says:Enmmm,在外面,有个舒适的环境,真的是种享受,以前从未有的享受~接下来,好好努力工作咯~
前言
中秋佳节,在此祝愿大家中秋快乐~
今天记录一次遇坑之路,自己做个记录。
Enmmm,开始咯~
前几天,LZ 接到一个任务,就是将调用相册展示本地相片时强制竖屏。
LZ 看了看,Enmmm,第三方,主要使用 RxJava 以及 Glide,和 LZ 负责的项目还有冲突,你说怎么能又省事儿又方便完成这个任务呢?
一开始,想着直接发布 Maven,项目一个地址,Easy~
然后,MMP,好像和原作者发布的还不一样,无奈放弃。。。
然后,只能导入源码,然后修改。。。
再点击左侧,查看详情:
根据以上结果,发现,环信的 EaseUI 中也包含了其中的一些库,在想,会不会是因为这个原因?
找不到?是因为库里有了?
那为什么之前有?或者说之前为什么可以?
。。。
太多的疑问,鸡大说:Just do it
将出现错误的依赖替换 EaseUI 中,如下:
implementation "com.android.support:appcompat-v7:${cfgs.androidSupportVersion}"
implementation "com.android.support:recyclerview-v7:${cfgs.androidSupportVersion}"
implementation "com.github.bumptech.glide:glide:${cfgs.glide}"
Enmmm,Build 了以下,成功,那就运行一波~?
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> Unexpected inputs: ImmutableJarInput{name=com.github.LuckSiege.PictureSelector:ucrop:v2.2.3, file=/Users/heliquan/StudioProjects/ouyu_android/app/build/intermediates/transforms/desugar/debug/22.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}, ImmutableJarInput{name=com.github.LuckSiege.PictureSelector:picture_library:v2.2.3, file=/Users/heliquan/StudioProjects/ouyu_android/app/build/intermediates/transforms/desugar/debug/14.jar, contentTypes=CLASSES, scopes=EXTERNAL_LIBRARIES, status=REMOVED}
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 36s
有点摸不着头脑,这是什么鬼?
忽然想到,之前好像看过会不会是传说中 Instant Run 导致的问题呢?
Just do it,尝试一波~ 果断关闭。
Enmmm,果不其然,MMP,猜测会不会是开启那个导致的一些软引用缓存?还是???
这次解决,很是懵逼。。。
回顾
此次解决问题,比较坑,一方面是遵循鸡大的 Just do it,其次就是各种尝试,MMP,今天比较顺利。
Enmmm,简单记录下,收拾收拾贡月亮咯~
个人公众号
不定期发布博文,最近有点忙,感谢老铁理解,欢迎关注~