尝试在android的回收器视图中删除元素时出现以下错误。
Caused by: java.lang.ClassNotFoundException: Didn't find class
"android.support.v4.animation.AnimatorCompatHelper" on path: DexPathList[[zip file
Run Code Online (Sandbox Code Playgroud)
尽管该元素已被删除,但应用程序崩溃了。请告诉我是否需要更改应用程序gradle文件或构建gradle文件。请帮帮我。
完整的异常跟踪:06-11 12:42:07.867 29844-29844 / com.application.aayush.geeta E / AndroidRuntime:致命例外:主进程:com.application.aayush.geeta,PID:29844 java.lang.NoClassDefFoundError:无法解决以下问题:Landroid / support / v4 / animation / AnimatorCompatHelper;在android.support.v7.widget.DefaultItemAnimator.animateRemove(DefaultItemAnimator.java:android.support.v7.widget.DefaultItemAnimator.resetAnimation(DefaultItemAnimator.java:515)上
另外,当我尝试调试时,出现以下错误:
Error:Execution failed for task ':app:lint'.
Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script
to proceed with errors:
...
android {
lintOptions {
abortOnError false
}
}
...
Run Code Online (Sandbox Code Playgroud)