Android studio3.0更新后 android.support.v4.animation.AnimatorCompatHelper找不到

在开发过程中,有的时候引入了多个三方库.在调用的时候会出现版本对应不上的原因.就会出现如标题的异常.解决的办法就是在你的build.gradle里面加入如下代码块:

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '24.1.0'
            }
        }
    }
}

插入之后就会好用了. 原理就是强制版本号统一

猜你喜欢

转载自blog.csdn.net/qq_16252123/article/details/78710206