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

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.
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.io.FileInputStream.open0(Native Method)	at java.io.FileInputStream.open(FileInputStream.java:195)	at java.io.FileInputStream.(FileInputStream.java:138)	at org.jetbrains.android.util.BufferingFileWrapper.readFile(BufferingFileWrapper.java:36)	at org.jetbrains.android.util.BufferingFileWrapper.getContents(BufferingFileWrapper.java:27)	at com.android.ide.common.resources.IdGeneratingResourceFile.parseFileForIds(IdGeneratingResourceFile.java:151)	at com.android.ide.common.resources.IdGeneratingResourceFile.load(IdGeneratingResourceFile.java:73)	at com.android.ide.common.resources.ResourceFolder.getFile(ResourceFolder.java:286)	at com.android.ide.common.resources.ResourceFolder.processFile(ResourceFolder.java:76)	at org.jetbrains.android.sdk.FrameworkResourceLoader$IdeFrameworkResources.ensureInitialized(FrameworkResourceLoader.java:120)	at org.jetbrains.android.sdk.FrameworkResourceLoader.loadPlatformResources(FrameworkResourceLoader.java:59)	at org.jetbrains.android.sdk.FrameworkResourceLoader.load(FrameworkResourceLoader.java:53)	at org.jetbrains.android.sdk.AndroidTargetData.getFrameworkResources(AndroidTargetData.java:232)	at com.android.tools.idea.configurations.ResourceResolverCache.getFrameworkResources(ResourceResolverCache.java:218)	at com.android.tools.idea.configurations.ResourceResolverCache.getResourceResolver(ResourceResolverCache.java:134)	at com.android.tools.idea.configurations.Configuration.getResourceResolver(Configuration.java:1212)	at com.android.tools.idea.rendering.RenderTask.getResourceResolver(RenderTask.java:198)	at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:425)	at com.android.tools.idea.rendering.RenderTask.lambda$inflate$61(RenderTask.java:659)