java.lang.UnsupportedOperationException: Can't convert to color: type=0x2

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    RuntimeException Unable to start activity.. InflateException Binary XML line #37: Error inflating class com.android.internal.widget.ActionBarView

    Stack Overflow | 2 years ago | Shirish Herwade
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jd.activity/com.jd.activity.AlertActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
  2. 0

    Can't convert to color: type=0x2 error when inflating layout in fragment but only on Samsung Galaxy and Note 4

    Stack Overflow | 2 years ago | user1140656
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/com.test.MainActivity}: android.view.InflateException: Binary XML file line #37: Error inflating class com.android.internal.widget.ActionBarView
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Missing drawables at runtime

    Stack Overflow | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{my.app/my.app.activity}: android.view.InflateException: Binary XML file line #30: Error inflating class com.android.internal.widget.ActionBarView
  5. 0

    java.lang.RuntimeException: Unable to start activity Comp... - justpaste.it

    justpaste.it | 1 year ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.stocksettings/com.android.stocksettings.StockSettings}: android.view.InflateException: Binary XML file line #5: Error inflating class com.android.internal.widget.ActionBarView

  1. filpgame 12 times, last 3 months ago
10 unregistered visitors
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.UnsupportedOperationException

    Can't convert to color: type=0x2

    at android.content.res.TypedArray.getColor()
  2. Android Platform
    TextView.<init>
    1. android.content.res.TypedArray.getColor(TypedArray.java:327)
    2. android.widget.TextView.<init>(TextView.java:1003)
    3. android.widget.TextView.<init>(TextView.java:908)
    4. android.widget.TextView.<init>(TextView.java:904)
    4 frames
  3. Android v7
    Toolbar.setTitle
    1. android.support.v7.widget.Toolbar.setTitle(Toolbar.java:750)
    1 frame
  4. com.example.android
    Movies_Home.onCreate
    1. com.example.android.shmoti_v4.MainActivities.Movies_Home.onCreate(Movies_Home.java:74)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5451)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
    5. android.app.ActivityThread.access$900(ActivityThread.java:175)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:146)
    9. android.app.ActivityThread.main(ActivityThread.java:5602)
    9 frames
  6. Java RT
    Method.invokeNative
    1. java.lang.reflect.Method.invokeNative(Method.java)
    1 frame