java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.

Stack Overflow | uddinstock | 5 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

    Attribute '?attr/colorPrimary' not found. Are you using the right theme?

    GitHub | 5 months ago | rudiw
    java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
  2. 0

    Theme Material Android: You need to use a Theme.AppCompat theme (or descendant) with the design library

    Stack Overflow | 5 months ago | Rudi Wijaya
    java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
  3. 0

    Android Studio: Rendering Problems when I open a project

    Stack Overflow | 5 months ago | uddinstock
    java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How do you change the theme of an app in Android Studio without getting rendering problems?

    Stack Overflow | 5 months ago | uddin M
    java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
  6. 0

    Android studio 1.4 rendering problems

    Stack Overflow | 1 year ago | Peter Jan
    java.lang.IllegalArgumentException: You need to use a Theme.AppCompat theme (or descendant) with the design library.
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.IllegalArgumentException

    You need to use a Theme.AppCompat theme (or descendant) with the design library.

    at android.support.design.widget.ThemeUtils.checkAppCompatTheme()
  2. android.support.design
    CoordinatorLayout.<init>
    1. android.support.design.widget.ThemeUtils.checkAppCompatTheme(ThemeUtils.java:36)
    2. android.support.design.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:192)
    3. android.support.design.widget.CoordinatorLayout.<init>(CoordinatorLayout.java:186)
    3 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: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.inflate(LayoutInflater.java:495)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:397)
    6 frames
  7. 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
  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$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
  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