android-ConstraintLayoutExamples icon indicating copy to clipboard operation
android-ConstraintLayoutExamples copied to clipboard

Caught an IllegalArgumentException due to the invalid container view id

Open rayworks opened this issue 8 years ago • 0 comments

The Steps to reproduce the crash

  1. Open the app
  2. Click the last item "Fragment Transition Example (2/2)"
  3. Drag the "MainFragment" square from bottom to top
  4. Click any item of the list

Attached log:

09-17 22:47:53.606 8844-8844/com.google.androidstudio.motionlayoutexample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.google.androidstudio.motionlayoutexample, PID: 8844
    java.lang.IllegalArgumentException: No view found for id 0x7f0800b0 (com.google.androidstudio.motionlayoutexample:id/rv_item_placeholder) for fragment ItemFragment{dbf6a25 #6 id=0x7f0800b0}
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1422)
        at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)
        at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)
        at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
        at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2596)
        at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2383)
        at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2338)
        at android.support.v4.app.FragmentManagerImpl.execSingleAction(FragmentManager.java:2215)
        at android.support.v4.app.BackStackRecord.commitNow(BackStackRecord.java:643)
        at com.google.androidstudio.motionlayoutexample.fragmentsdemo.CustomAdapter$onBindViewHolder$1.onClick(CustomAdapter.kt:44)
        at android.view.View.performClick(View.java:6305)
        at android.view.View$PerformClick.run(View.java:24840)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6501)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

rayworks avatar Sep 17 '18 15:09 rayworks