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.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

Solutions on the web

via google.com by Unknown author, 1 year ago
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.
via Stack Overflow by Code Pirate
, 11 months ago
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.
via Stack Overflow by Francis Rodrigues
, 11 months ago
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.
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(ZipFile.java:-2)
at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
at com.intellij.openapi.util.io.FileUtilRt.loadBytes(FileUtilRt.java:627)
at com.intellij.openapi.util.io.FileUtil.loadBytes(FileUtil.java:1604)
at com.intellij.util.lang.MemoryResource.load(MemoryResource.java:74)
at com.intellij.util.lang.JarLoader.getResource(JarLoader.java:134)
at com.intellij.util.lang.ClassPath.getResource(ClassPath.java:120)
at com.intellij.util.lang.UrlClassLoader._getResource(UrlClassLoader.java:279)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at android.support.v7.widget.ActionBarOverlayLayout.(ActionBarOverlayLayout.java:137)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at com.android.layoutlib.bridge.bars.BridgeActionBar.(BridgeActionBar.java:84)
at com.android.layoutlib.bridge.bars.AppCompatActionBar.(AppCompatActionBar.java:59)
at com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238)
at com.android.layoutlib.bridge.impl.Layout.(Layout.java:150)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.