Thank you for the report. I filed b.android.com/79160 to track the issue. On Saturday, November 8, 2014 9:36:43 PM UTC, Aidan Timson wrote: > > When I try to view the preview or design view i sometimes get this: > > Exception raised during rendering: Could not initialize class libcore. > util.ZoneInfoDB > > and at other times this: > > java.lang.NullPointerException > at libcore.io.MemoryMappedFile.mmapRO(MemoryMappedFile.java:52) > at libcore.util.ZoneInfoDB$TzData.loadData(ZoneInfoDB.java:112) > at libcore.util.ZoneInfoDB$TzData.<init>(ZoneInfoDB.java:95) > at libcore.util.ZoneInfoDB.<clinit>(ZoneInfoDB.java:43) > at > android.text.format.Time$TimeCalculator.lookupZoneInfo(Time.java:1080) > at android.text.format.Time$TimeCalculator.<init>(Time.java:1040) > at android.text.format.Time.initialize(Time.java:204) > at android.text.format.Time.<init>(Time.java:180) > at android.widget.AnalogClock.<init>(AnalogClock.java:96) > at android.widget.AnalogClock.<init>(AnalogClock.java:71) > at android.widget.AnalogClock.<init>(AnalogClock.java:67) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:408) > at android.view.LayoutInflater.createView(LayoutInflater.java:607) > at android.view.BridgeInflater.onCreateView(BridgeInflater.java:82) > at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682) > at > android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741) > at > android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:128) > at > android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:806) > at > android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64) > at android.view.LayoutInflater.rInflate(LayoutInflater.java:782) > at android.view.LayoutInflater.inflate(LayoutInflater.java:504) > at android.view.LayoutInflater.inflate(LayoutInflater.java:385) > at > com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:401) > at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:329) > at > com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350) > at > com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:688) > at > com.android.tools.idea.rendering.RenderService$5.compute(RenderService.java:677) > at > com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932) > at > com.android.tools.idea.rendering.RenderService.createRenderSession(RenderService.java:677) > at > com.android.tools.idea.rendering.RenderService.render(RenderService.java:815) > at > org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:611) > at > org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1900(AndroidLayoutPreviewToolWindowManager.java:81) > at > org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:553) > at > com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178) > at > com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209) > at > com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212) > at > com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171) > at > org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:548) > at > com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320) > at > com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310) > at > com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:254) > at > com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269) > at > com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227) > at > com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217) > at > com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238) > at com.intellij.util.Alarm$Request$1.run(Alarm.java:327) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > 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) > > I have found it only occurs when I have AnalogClock code. When I comment > it out, it renders both views fine. > > I really need a fix for this as I struggle to develop by just debugging my > application to my phone as I need to compare screen sizes etc.. >
-- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
