java.lang.NumberFormatException: Attribute '?attr/colorAccent' not found. Are you using the right theme?

Stack Overflow | Fuad | 11 months ago
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

    Attribute error when switching to Material Design

    Stack Overflow | 11 months ago | Fuad
    java.lang.NumberFormatException: Attribute '?attr/colorAccent' not found. Are you using the right theme?
  2. 0

    EditText Rendering Problems

    GitHub | 2 years ago | SteveCampos
    java.lang.NumberFormatException: Color value '?attr/colorAccent' must start with #
  3. 0

    Middle Alignment (pstsPaddingMiddle="true") only shows first tab. Everything else is hidden

    GitHub | 2 years ago | Charrondev
    java.lang.NumberFormatException: Color value '/Users/charrondev/Dev/android-sdk/platforms/android-21/data/res/color/primary_text_dark.xml' must start with #
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Time Square Calendar erro at XML

    Stack Overflow | 2 years ago | Carlos Henrique Cardoso
    java.lang.NumberFormatException: Color value '16dp' must start with #
  6. 0

    Facebook sdk integartion error with project

    Stack Overflow | 2 years ago | siddharth
    java.lang.NumberFormatException: Color value '0.26' must start with #

    2 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.NumberFormatException

      Attribute '?attr/colorAccent' not found. Are you using the right theme?

      at com.android.layoutlib.bridge.impl.ResourceHelper.getColor()
    2. com.android.layoutlib
      ResourceHelper.getColor
      1. com.android.layoutlib.bridge.impl.ResourceHelper.getColor(ResourceHelper.java:76)
      1 frame
    3. Android Platform
      TextView.<init>
      1. android.content.res.BridgeTypedArray.getColorStateList(BridgeTypedArray.java:372)
      2. android.widget.TextView.<init>(TextView.java:750)
      3. android.widget.TextView.<init>(TextView.java:671)
      4. android.widget.TextView.<init>(TextView.java:667)
      4 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedConstructorAccessor115.newInstance(Unknown Source)
      2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      3. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      3 frames
    5. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createView(LayoutInflater.java:619)
      2. android.view.BridgeInflater.onCreateView(BridgeInflater.java:107)
      3. android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
      4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
      5. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:149)
      6. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
      7. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)
      8. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      9. android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
      10. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
      11. android.view.LayoutInflater.inflate(LayoutInflater.java:515)
      12. android.view.LayoutInflater.inflate(LayoutInflater.java:394)
      12 frames
    6. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:229)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)
      2 frames
    7. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
      1 frame
    8. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)
      2 frames
    9. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)
      1 frame
    10. com.android.tools
      RenderTask.render
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)
      2. com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)
      3. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)
      4. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)
      5. com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)
      6. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)
      7. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)
      7 frames
    11. IntelliJ android module
      AndroidDesignerEditorPanel$7.run
      1. com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$7.run(AndroidDesignerEditorPanel.java:519)
      1 frame
    12. Openapi
      QueueProcessor.runSafely
      1. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)
      2. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)
      3. com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)
      4. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)
      5. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)
      6. com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)
      7. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
      7 frames
    13. IDEA
      Alarm$Request$1.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
      1 frame
    14. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames