当前位置:   article > 正文

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHe_coclassdeffounderror:failed resolution

coclassdeffounderror:failed resolution

在开发过程中,有的时候引入了多个三方库.在调用的时候会出现版本对应不上的原因,需要强制版本号统一

解决办法,在app和Module: Librarybuild.gradle添加如下代码

  1. configurations.all {
  2. resolutionStrategy.eachDependency { DependencyResolveDetails details ->
  3. def requested = details.requested
  4. if (requested.group == 'com.android.support') {
  5. if (!requested.name.startsWith("multidex")) {
  6. details.useVersion '25.3.0'
  7. }
  8. }
  9. }
  10. }

参考: https://stackoverflow.com/questions/42987363/java-lang-noclassdeffounderror-failed-resolution-of-landroid-support-v4-animat

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/915066
推荐阅读
相关标签
  

闽ICP备14008679号