qq_34468274
缠汐
采纳率45.5%
2018-10-24 03:34

NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;

5

最近想买一直报这个问题 希望有大神帮我解决一下 导致崩溃 在多种地方都会显示这个错误 也没有提示哪行带拿错了

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/animation/AnimatorCompatHelper;
at android.support.v7.widget.DefaultItemAnimator.resetAnimation(DefaultItemAnimator.java:515)
at android.support.v7.widget.DefaultItemAnimator.animateAdd(DefaultItemAnimator.java:218)
at android.support.v7.widget.SimpleItemAnimator.animateAppearance(SimpleItemAnimator.java:114)
at android.support.v7.widget.RecyclerView.animateAppearance(RecyclerView.java:3804)
at android.support.v7.widget.RecyclerView$4.processAppeared(RecyclerView.java:521)
at android.support.v7.widget.ViewInfoStore.process(ViewInfoStore.java:247)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:3653)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3323)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3844)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1732)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1497)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1743)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1586)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1495)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:336)
at android.widget.FrameLayout.onLayout(FrameLayout.java:273)
at com.android.internal.policy.PhoneWindow$DecorView.onLayout(PhoneWindow.java:2727)
at android.view.View.layout(View.java:16673)
at android.view.ViewGroup.layout(ViewGroup.java:5476)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2304)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2033)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1209)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6330)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:862)
at android.view.Choreographer.doCallbacks(Choreographer.java:674)
at android.view.Choreographer.doFrame(Choreographer.java:610)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:848)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loo

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • devmiao devmiao 3年前
  • qq_28268507 kimiier 3年前

    找到sdk的根目录,如我的是D:\Android\Sdk\sources\android-23\android\support\v4\animation 复制下面的所有文件,到自己的项目中,注意包名必须是android\support\v4\animation 就解决了

    点赞 评论 复制链接分享