java.util.concurrent.TimeoutException

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.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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 com.intellij.util.lang.UrlClassLoader.getResourceAsStream(UrlClassLoader.java:287) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at android.support.v7.widget.ActionBarOverlayLayout.<init>(ActionBarOverlayLayout.java:137) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 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.<init>(BridgeActionBar.java:84) at com.android.layoutlib.bridge.bars.AppCompatActionBar.<init>(AppCompatActionBar.java:59) at com.android.layoutlib.bridge.impl.Layout.createActionBar(Layout.java:238) at com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:150)

Users with the same issue

Unknown visitor1 times, last one,