java.lang.ClassNotFoundException: android.support.v4.content.ContextCompatApi21

google.com | 2 months ago
  1. 0

    Android Studio the following class could not be instantiated?

    Stack Overflow | 2 years ago | Zack
    java.lang.ClassNotFoundException: android.support.v7.appcompat.R$attr
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    could not be instantiated? Android Studio the following class | Tech Jaffa

    techjaffa.info | 8 months ago
    java.lang.ClassNotFoundException: android.support.v7.appcompat.R$attr
  4. 0

    Studio the following class could not be instantiated? Android | Tech Jaffa

    techjaffa.info | 8 months ago
    java.lang.ClassNotFoundException: android.support.v7.appcompat.R$attr

    21 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.ClassNotFoundException

      android.support.v4.content.ContextCompatApi21

      at org.jetbrains.android.uipreview.ModuleClassLoader.load()
    2. JetBrains android
      ModuleClassLoader.load
      1. org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:127)
      1 frame
    3. com.android.tools
      RenderClassLoader.findClass
      1. com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:53)
      1 frame
    4. JetBrains android
      ModuleClassLoader.findClass
      1. org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:84)
      1 frame
    5. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2 frames
    6. Android Support v4
      ContextCompat.getDrawable
      1. android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:319)
      1 frame
    7. Android v7
      Toolbar.<init>
      1. android.support.v7.internal.widget.TintManager.getDrawable(TintManager.java:137)
      2. android.support.v7.internal.widget.TintTypedArray.getDrawable(TintTypedArray.java:62)
      3. android.support.v7.widget.Toolbar.<init>(Toolbar.java:250)
      4. android.support.v7.widget.Toolbar.<init>(Toolbar.java:192)
      4 frames
    8. ar.com.lichtmaier
      MiToolbar.<init>
      1. ar.com.lichtmaier.leyes.MiToolbar.<init>(MiToolbar.java:17)
      1 frame
    9. 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
    10. JetBrains android
      ViewLoader.loadView
      1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:413)
      2. org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
      2 frames
    11. com.android.tools
      LayoutlibCallback.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallback.loadView(LayoutlibCallback.java:177)
      1 frame
    12. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
      2. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:132)
      3. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:806)
      4. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
      5. android.view.LayoutInflater.rInflate(LayoutInflater.java:782)
      6. android.view.LayoutInflater.inflate(LayoutInflater.java:504)
      7. android.view.LayoutInflater.inflate(LayoutInflater.java:385)
      7 frames
    13. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:410)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:321)
      2 frames
    14. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)
      1 frame
    15. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:497)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:485)
      2 frames
    16. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:894)
      1 frame
    17. com.android.tools
      RenderTask.render
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:485)
      2. com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:590)
      2 frames
    18. JetBrains android
      AndroidLayoutPreviewToolWindowManager$7$1.run
      1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:644)
      2. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:79)
      3. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:586)
      3 frames
    19. IDEA
      CoreProgressManager.runProcess
      1. com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
      2. com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
      3. com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
      4. com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
      5. com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
      5 frames
    20. JetBrains android
      AndroidLayoutPreviewToolWindowManager$7.run
      1. org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:581)
      1 frame
    21. 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
    22. IDEA
      Alarm$Request$1.run
      1. com.intellij.util.Alarm$Request$1.run(Alarm.java:351)
      1 frame
    23. 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