java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.RelativeLayout

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Fatal Exception when using Floating Action Button

    Stack Overflow | 4 months ago | ojonugwa ochalifu
    java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.RelativeLayout

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.RelativeLayout

      at judeochalifu.teylur.fragments.NewEntryFragment.onCreateView()
    2. judeochalifu.teylur.fragments
      NewEntryFragment.onCreateView
      1. judeochalifu.teylur.fragments.NewEntryFragment.onCreateView(NewEntryFragment.java:47)
      1 frame
    3. Android Support v4
      FragmentManagerImpl$1.run
      1. android.support.v4.app.Fragment.performCreateView(Fragment.java:2080)
      2. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1108)
      3. android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)
      4. android.support.v4.app.BackStackRecord.run(BackStackRecord.java:801)
      5. android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1677)
      6. android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:536)
      6 frames
    4. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:751)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.app.ActivityThread.main(ActivityThread.java:6077)
      4 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames