java.lang.RuntimeException: Unable to start activity ComponentInfo{com.morais.daniela.doctorquiz/com.morais.daniela.doctorquiz.Activity.ResultActivity}: java.lang.ClassCastException: android.support.v7.internal.widget.TintDrawableWrapper cannot be cast to android.graphics.drawable.LayerDrawable

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

    Why can't I do cast?

    Stack Overflow | 2 years ago | Daniela Morais
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.morais.daniela.doctorquiz/com.morais.daniela.doctorquiz.Activity.ResultActivity}: java.lang.ClassCastException: android.support.v7.internal.widget.TintDrawableWrapper cannot be cast to android.graphics.drawable.LayerDrawable

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.support.v7.internal.widget.TintDrawableWrapper cannot be cast to android.graphics.drawable.LayerDrawable

      at com.morais.daniela.doctorquiz.Activity.ResultActivity.setDados()
    2. com.morais.daniela
      ResultActivity.onCreate
      1. com.morais.daniela.doctorquiz.Activity.ResultActivity.setDados(ResultActivity.java:44)
      2. com.morais.daniela.doctorquiz.Activity.ResultActivity.onCreate(ResultActivity.java:36)
      2 frames
    3. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:4465)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1931)
      3 frames