java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

codecanyon.net | 7 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

    Discussion on Material Design UI Android Template App (Page 13)

    codecanyon.net | 7 months ago
    java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
  2. 0

    Adding toolbar to activity causes NoClassDefFoundError

    Stack Overflow | 2 years ago | sirvon
    java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
  3. 0

    将工具栏添加到活动导致NoClassDefFoundError - Adding toolbar to activity causes NoClassDefFoundErrorIT怪 挨踢怪

    itguai.com | 7 months ago
    java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 94480 - android - Rendering Problem for android.support.v7.widget.Toolbar - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 7 months ago
    java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
  6. 0

    Issue 94480 - android - Rendering Problem for android.support.v7.widget.Toolbar - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 7 months ago
    java.lang.NoSuchMethodError: android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    1 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.NoSuchMethodError

      android.support.v4.content.ContextCompat.getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

      at android.support.v7.internal.widget.TintManager.getDrawable()
    2. Android v7
      Toolbar.<init>
      1. android.support.v7.internal.widget.TintManager.getDrawable(TintManager.java:133)
      2. android.support.v7.internal.widget.TintTypedArray.getDrawable(TintTypedArray.java:62)
      3. android.support.v7.widget.Toolbar.<init>(Toolbar.java:249)
      4. android.support.v7.widget.Toolbar.<init>(Toolbar.java:191)
      4 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    4. JetBrains android
      ViewLoader.loadView
      1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:458)
      2. org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:170)
      3. org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:103)
      3 frames
    5. com.android.tools
      LayoutlibCallbackImpl.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:168)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:247)
      2. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:171)
      3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
      4. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:835)
      5. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      6. android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
      7. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
      8. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:838)
      9. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      10. android.view.LayoutInflater.rInflate(LayoutInflater.java:811)
      11. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
      12. android.view.LayoutInflater.inflate(LayoutInflater.java:515)
      13. android.view.LayoutInflater.inflate(LayoutInflater.java:423)
      13 frames
    7. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:83)
      2. com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:59)
      3. com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:237)
      4. com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:151)
      5. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:206)
      6. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:426)
      6 frames
    8. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
      1 frame
    9. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:510)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:498)
      2 frames
    10. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:888)
      1 frame
    11. com.android.tools
      RenderTask.render
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:498)
      2. com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:72)
      3. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:610)
      4. com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:607)
      5. com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:362)
      6. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:607)
      7. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:629)
      7 frames
    12. IntelliJ android module
      AndroidDesignerEditorPanel$6.run
      1. com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:480)
      1 frame
    13. Openapi
      QueueProcessor.runSafely
      1. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)
      2. com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)
      3. com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254)
      4. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)
      5. com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)
      6. com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)
      7. com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
      7 frames
    14. IDEA
      Alarm$Request$1.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:351)
      1 frame
    15. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames