java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

google.com | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Try to use "Base.Theme.AppCompat.Light.DarkActionBar". It seems sometimes it need the "Base" prefix to work properly. If that doesn't work, go for Build > Rebuild Project and File > Invalidate caches/Restart.
  2. 5

    Issue 215369 - android - rendering error - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 6 months ago
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.
  3. 0

    Android Studio Rendering Problems java.util.concurrent.TimeoutException

    Stack Overflow | 4 months ago | Code Pirate
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AndroidStudio - Couldn't resolve resource @id/visible in layout xml file

    Stack Overflow | 5 months ago | Francis Rodrigues
    java.util.concurrent.TimeoutException: Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

    1 unregistered visitors

    Root Cause Analysis

    1. java.util.concurrent.TimeoutException

      Preview timed out while rendering the layout. This typically happens when there is an infinite loop or unbounded recursion in one of the custom views.

      at java.util.zip.ZipFile.read()
    2. Java RT
      InflaterInputStream.read
      1. java.util.zip.ZipFile.read(ZipFile.java:-2)
      2. java.util.zip.ZipFile.access$1400(ZipFile.java:60)
      3. java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
      4. java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
      5. java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
      5 frames
    3. Openapi
      UrlClassLoader.getResourceAsStream
      1. com.intellij.openapi.util.io.FileUtilRt.loadBytes(FileUtilRt.java:627)
      2. com.intellij.openapi.util.io.FileUtil.loadBytes(FileUtil.java:1604)
      3. com.intellij.util.lang.MemoryResource.load(MemoryResource.java:74)
      4. com.intellij.util.lang.JarLoader.getResource(JarLoader.java:134)
      5. com.intellij.util.lang.ClassPath.getResource(ClassPath.java:120)
      6. com.intellij.util.lang.UrlClassLoader._getResource(UrlClassLoader.java:279)
      7. com.intellij.util.lang.UrlClassLoader.getResourceAsStream(UrlClassLoader.java:287)
      7 frames
    4. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      2 frames
    5. Android v7
      ActionBarOverlayLayout.<init>
      1. android.support.v7.widget.ActionBarOverlayLayout.<init>(ActionBarOverlayLayout.java:137)
      1 frame
    6. Java RT
      Constructor.newInstance
      1. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      1 frame
    7. Android Platform
      LayoutInflater.inflate
      1. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
      2. android.view.LayoutInflater.inflate(LayoutInflater.java:495)
      3. android.view.LayoutInflater.inflate(LayoutInflater.java:426)
      3 frames
    8. com.android.layoutlib
      Layout.<init>
      1. com.android.layoutlib.bridge.bars.BridgeActionBar.<init>(BridgeActionBar.java:84)
      2. com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:59)
      3. com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238)
      4. com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:150)
      4 frames