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 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    google.com | 5 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.

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