Duplicate class androidx.annotation.AnimRes found in modules annotation-1.0.0.jar (androidx.annotation:annotation:1.0.0) and jetified-android-support-v4.jar (android-support-v4.jar)
Duplicate class androidx.annotation.AnimatorRes found in modules annotation-1.0.0.jar (androidx.annotation:annotation:1.0.0) and jetified-android-support-v4.jar (android-support-v4.jar)
Duplicate class androidx.annotation.AnyRes found in modules annotation-1.0.0.jar (androidx.annotation:annotation:1.0.0) and jetified-android-support-v4.jar (android-support-v4.jar)…
看到上面的这些错误,让我好生痛苦,它的变体还有很多,什么media包的,反正都是在android-support-v4.jar里面的包,因为某些原因,我需要在AndroidStudio3.5上面运行程序,编写代码,然后关于这种包的冲突错误一堆一堆的出现,搞得我都怀疑Android开发怎么那么难了。
一顿搜索之后,发现很多网友都遇到过,但是,他们很多都没有解决,解决了的也很幸运。这里我给出自己的解决办法吧。
我们的思路就是,遇到库冲突,无非就是想只是用
AndroidStudio3 Androidx库和Android.support.v4库冲突Duplicate class androidx.annotation.AnimRes found解决办法
最新推荐文章于 2025-06-23 11:55:29 发布