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

itguai.com | 3 months ago
  1. 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;
  2. 0

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

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

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

    codecanyon.net | 3 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 | 3 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 | 3 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:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    4. JetBrains android
      ViewLoader.loadView
      1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:396)
      2. org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:100)
      2 frames
    5. com.android.tools
      LayoutlibCallback.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:176)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
      2. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:132)
      3. android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:117)
      4. android.view.LayoutInflater.parseInclude(LayoutInflater.java:858)
      5. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:802)
      6. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      7. android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
      8. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:809)
      9. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      10. android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
      11. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      12. android.view.LayoutInflater.inflate(LayoutInflater.java:385)
      12 frames
    7. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:400)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:332)
      2 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
      RenderService$5.compute
      1. com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:708)
      2. com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:697)
      2 frames
    10. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932)
      1 frame
    11. com.android.tools
      RenderService.render
      1. com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:697)
      2. com.android.tools.idea.rendering.RenderService.render(RenderService.java:816)
      2 frames
    12. JetBrains android
      AndroidLayoutPreviewToolWindowManager$7$1.run
      1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:646)
      2. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:82)
      3. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:589)
      3 frames
    13. IDEA
      ProgressManagerImpl.runProcess
      1. com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
      2. com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
      3. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
      4. com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
      4 frames
    14. JetBrains android
      AndroidLayoutPreviewToolWindowManager$7.run
      1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:584)
      1 frame
    15. 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
    16. IDEA
      Alarm$Request$1.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:327)
      1 frame
    17. 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