java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support4/animation/AnimatorCompatHelp
程序员文章站
2022-07-12 22:19:31
...
studio报错提示如下错误:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support4/animation/AnimatorCompatHelper;
原因:第三方库的依赖于主app版权不一致导致
解决办法:
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '26.0.2'
}
}
}
}
具体如图:
上一篇: zookeeper与eureka对比
下一篇: 数学问题:进制转换