java.lang.NoClassDefFoundError: android/support/v7/cardview/R$color

google.com | 6 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

    Android - Unable to instantiate cardview

    Stack Overflow | 9 months ago | Anirudh Srivastav
    java.lang.NoClassDefFoundError: android/support/v7/cardview/R$color
  2. 0

    Android Studio - Unable to use cardview with android API 25

    Stack Overflow | 5 days ago | rjcossa
    java.lang.NoClassDefFoundError: android/support/v7/cardview/R$color
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Error inflating class and android.support.v7.widget.CardView

    tagwith.com | 2 years ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.log/com.example.log.HomeScreenActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class android.support.v7.widget.CardView
  5. 0

    java - Ошибка при отображении CardView - Stack Overflow на русском

    stackoverflow.com | 1 year ago
    android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.CardView

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      android/support/v7/cardview/R$color

      at android.support.v7.widget.CardView.initialize()
    2. 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
    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:423)
      4 frames
    4. 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
    5. com.android.tools
      LayoutlibCallbackImpl.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
      1 frame
    6. Android Platform
      LayoutInflater.inflate
      1. android.view.BridgeInflater.loadCustomView(BridgeInflater.java:312)
      2. android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:233)
      3. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
      4. android.view.LayoutInflater.inflate(LayoutInflater.java:495)
      5. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
      5 frames
    7. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:317)
      2. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
      2 frames
    8. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
      1 frame
    9. 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
    10. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
      1 frame
    11. com.android.tools
      RenderTask.lambda$inflate$61
      1. com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
      2. com.android.tools.idea.rendering.RenderTask.lambda$inflate$61(RenderTask.java:659)
      2 frames
    12. 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