java.lang.ClassCastException: android.support.design.widget.FloatingActionButton cannot be cast to android.widget.Button

Stack Overflow | Hadi Samadbin | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd and Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    android.support.design.widget.FloatingActionButton cannot be cast to android.widget.Button

    Stack Overflow | 2 months ago | Hadi Samadbin
    java.lang.ClassCastException: android.support.design.widget.FloatingActionButton cannot be cast to android.widget.Button
  2. 0
    samebug tip
    The parsed JSON does not contains the requested field.
  3. 0
    samebug tip
    If you're using android marshmallow and on, you need to ask for permission explicitly during runtime. More info on this documentation here: https://goo.gl/XT0CnD
    via GitHub by phime42
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This is mostly caused by an async call trying to load something to an object that's already been destroyed. Use a pauseRequests() on the onDestroy method.
    via GitHub by rsaphala

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.support.design.widget.FloatingActionButton cannot be cast to android.widget.Button

      at com.android.slidingmenu.FindMatches.addView()
    2. com.android.slidingmenu
      FindMatches$BackGroundTaskForDownLoadMatcheduserImage.onPostExecute
      1. com.android.slidingmenu.FindMatches.addView(FindMatches.java:666)
      2. com.android.slidingmenu.FindMatches.access$2500(FindMatches.java:178)
      3. com.android.slidingmenu.FindMatches$BackGroundTaskForDownLoadMatcheduserImage.onPostExecute(FindMatches.java:2005)
      4. com.android.slidingmenu.FindMatches$BackGroundTaskForDownLoadMatcheduserImage.onPostExecute(FindMatches.java:1963)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:651)
      2. android.os.AsyncTask.access$500(AsyncTask.java:180)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)
      4. android.os.Handler.dispatchMessage(Handler.java:102)
      5. android.os.Looper.loop(Looper.java:234)
      6. android.app.ActivityThread.main(ActivityThread.java:5526)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
      2 frames