Android 引入一些第三方库出现的问题

1.Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.animation.AnimatorCompatHelper"
这是在引入了 BaseRecyclerViewAdapterHelper 引用动画效果后发现 两边的AnimatorCompatHelper 类库版本不同

解决方法:

    configurations.all {

        resolutionStrategy.eachDependency { DependencyResolveDetails details ->

            defrequested = details.requested

                if(requested.group=='com.android.support') {

                    if(!requested.name.startsWith("multidex")) {

                        details.useVersion'26.0.2'

                     }

                 }

           }

    }



你可能感兴趣的:(Android 引入一些第三方库出现的问题)