NoClassDefFoundError android/support/v4/animation/AnimatorCompatHelper

半城伤御伤魂 提交于 2019-11-28 23:29:28

Solved by following the answer from this question: Android Support Repo 46.0.0 with Android Studio 2.3

Solution:

Added this script in build.gradle file at the end of app.module

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'
            }
        }
    }
}

Hope this will help other people.

Try this it will resolved the error

configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '25.3.0'
            }
        }
    }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!