java.lang.ClassNotFoundException: android.support.v7.cardview.R$color

Stack Overflow | Varoun | 2 months ago
  1. 0

    CardView isn't rendering - ClassNotFoundException: android.support.v7.cardview.R$color

    Stack Overflow | 2 months ago | Varoun
    java.lang.ClassNotFoundException: android.support.v7.cardview.R$color
  2. 0

    i am having rendering issue when i put the

    GitHub | 2 months ago | nzala
    java.lang.ClassNotFoundException: info.hoang8f.android.segmented.R$color
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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

    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.v7.cardview.R$color

      at org.jetbrains.android.uipreview.ModuleClassLoader.load()
    2. JetBrains android
      ModuleClassLoader.load
      1. org.jetbrains.android.uipreview.ModuleClassLoader.load(ModuleClassLoader.java:160)
      1 frame
    3. com.android.tools
      RenderClassLoader.findClass
      1. com.android.tools.idea.rendering.RenderClassLoader.findClass(RenderClassLoader.java:54)
      1 frame
    4. JetBrains android
      ModuleClassLoader.findClass
      1. org.jetbrains.android.uipreview.ModuleClassLoader.findClass(ModuleClassLoader.java:90)
      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. JetBrains android
      ModuleClassLoader.loadClass
      1. org.jetbrains.android.uipreview.ModuleClassLoader.loadClass(ModuleClassLoader.java:193)
      1 frame
    7. Android v7
      CardView.<init>
      1. android.support.v7.widget.CardView.initialize(CardView.java:232)
      2. android.support.v7.widget.CardView.<init>(CardView.java:116)
      2 frames
    8. 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:423)
      4 frames
    9. JetBrains android
      ViewLoader.loadView
      1. org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:465)
      2. org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:172)
      3. org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:105)
      3 frames
    10. com.android.tools
      LayoutlibCallbackImpl.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
      1 frame
    11. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
      2. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
      3. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
      4. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
      5. android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
      6. android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
      7. android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
      8. android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
      9. android.view.LayoutInflater.inflate(LayoutInflater.java:518)
      10. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
      10 frames
    12. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
      2 frames
    13. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
      1 frame
    14. com.android.tools
      RenderTask$2.compute
      1. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
      2. com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
      2 frames
    15. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
      1 frame
    16. com.android.tools
      RenderTask.lambda$inflate$72
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
      2. com.android.tools.idea.rendering.RenderTask.lambda$inflate$72(RenderTask.java:659)
      2 frames
    17. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames