java.lang.IllegalStateException: Unable to locate mode 0


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by Geo Antony
, 9 months ago
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0

Solution icon of stackoverflow
Unable to locate mode 0


Stack trace

java.lang.IllegalStateException: Unable to locate mode 0
	at android.view.DisplayInfo.findMode(DisplayInfo.java:458)
	at android.view.DisplayInfo.getMode(DisplayInfo.java:445)
	at android.view.Display.getRefreshRate(Display.java:648)
	at android.support.v7.widget.RecyclerView.onAttachedToWindow(RecyclerView.java:2392)
	at android.view.View.dispatchAttachedToWindow(View.java:15392)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2953)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2960)
	at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)
	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:333)
	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
	at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:389)
	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:548)
	at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:533)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
	at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:533)
	at com.android.tools.idea.rendering.RenderTask.lambda$inflate$70(RenderTask.java:659)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

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

Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
2 times, 7 months ago