support转androidx 遇到的坑

2019-08-01  本文已影响0人  晓晓桑

为什么要转成androidx呢?因为报错:

Caused by: java.lang.RuntimeException: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0]

怎么转呢

image.png

注意一定要备份哦

遇到的问题

(FragmentActivity) activity).getSupportFragmentManager().registerFragmentLifecycleCallbacks(@NonNull FragmentLifecycleCallbacks cb,
            boolean recursive)
 //图片加载——Glide
implementation "com.github.bumptech.glide:glide:4.8.0
annotationProcessor "com.github.bumptech.glide:compiler:4.8.0

兼容androidx
implementation "com.android.support:support-annotations:28.0.0-alpha3"
annotationProcessor "com.android.support:support-annotations:28.0.0-alpha3"
上一篇 下一篇

猜你喜欢

热点阅读