java.lang.ClassCastException: android.support.v7.widget.ActionBarOverlayLayout cannot be cast to android.support.v7.internal.widget.ActionBarOverlayLayout

Stack Overflow | MichelReap | 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

    Rendering errors on preview

    Stack Overflow | 5 months ago | MichelReap
    java.lang.ClassCastException: android.support.v7.widget.ActionBarOverlayLayout cannot be cast to android.support.v7.internal.widget.ActionBarOverlayLayout

    4 unregistered visitors

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.support.v7.widget.ActionBarOverlayLayout cannot be cast to android.support.v7.internal.widget.ActionBarOverlayLayout

      at android.support.v7.internal.app.WindowDecorActionBar.init()
    2. android.support.v7
      WindowDecorActionBar.<init>
      1. android.support.v7.internal.app.WindowDecorActionBar.init(WindowDecorActionBar.java:196)
      2. android.support.v7.internal.app.WindowDecorActionBar.<init>(WindowDecorActionBar.java:192)
      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.loadClass
      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.loadClass(ViewLoader.java:150)
      3 frames
    5. com.android.tools
      LayoutlibCallbackImpl.loadView
      1. com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:184)
      1 frame
    6. com.android.layoutlib
      Bridge.createSession
      1. com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:89)
      2. com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238)
      3. com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:150)
      4. com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:301)
      5. com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
      5 frames
    7. com.android.tools.sdk-common
      LayoutLibrary.createSession
      1. com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
      1 frame
    8. 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
    9. IDEA
      ApplicationImpl.runReadAction
      1. com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
      1 frame
    10. 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
    11. 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