java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1

Stack Overflow | Manoj Pandey | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    App crash On Use Material Theme Android lolipop

    Stack Overflow | 6 months ago | Manoj Pandey
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.MainActivity}: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1
  2. 0

    DayNightTheme works on one app but not the other?

    Stack Overflow | 1 year ago | Nick Mowen
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nick.mowen.materialdesignplugin/com.nick.mowen.materialdesign.ui.MainActivity}: java.lang.UnsupportedOperationException: Can't convert to color: type=0x1

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Can't convert to color: type=0x1

      at android.content.res.TypedArray.getColor()
    2. Android Platform
      ContextThemeWrapper.setTheme
      1. android.content.res.TypedArray.getColor(TypedArray.java:404)
      2. android.app.Activity.onApplyThemeResource(Activity.java:3738)
      3. android.view.ContextThemeWrapper.initializeTheme(ContextThemeWrapper.java:140)
      4. android.view.ContextThemeWrapper.setTheme(ContextThemeWrapper.java:85)
      4 frames
    3. Android v7
      AppCompatActivity.setTheme
      1. android.support.v7.app.AppCompatActivity.setTheme(AppCompatActivity.java:90)
      1 frame
    4. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2474)
      2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2614)
      2 frames