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.

Solutions on the web1180

  • via Stack Overflow by Shubham Singh
    , 8 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.
  • 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.
  • 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.
  • Stack trace

    • 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.<init>(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)

    Write tip

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

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.