|
恩,版主耐心帮忙,虽然还没解决。
经过昨天几小时,把依赖都扒出来了,总结一下情况:
1、直接使用第三方 aar 包 + 依赖 打包成模块,上传编译自定义时出错:
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class androidx.core.content.res.ColorStateListInflaterCompat found in modules core-1.0.0-runtime.jar (androidx.core:core:1.0.0) and jetified-appcompat-v7-26.0.0-runtime.jar (appcompat-v7-26.0.0.aar)
Duplicate class androidx.core.content.res.GrowingArrayUtils found in modules core-1.0.0-runtime.jar (androidx.core:core:1.0.0) and jetified-appcompat-v7-26.0.0-runtime.jar (appcompat-v7-26.0.0.aar)
2、若去掉模块 androidx 支持,修改第三方模块andriodx 为 android.support.v4.content.FileProvider, 则编译通过,运行时报错
io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://**.**/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentActivity; |
|