You are watching: Exception raised during rendering: com/android/util/propertiesmap

java.lang.NoClassDefFoundError: com/android/util/PropertiesMapat com.android.layoutlib.bridge.android.BridgeContext.createStyleBasedTypedArray(BridgeContext.java:940)at com.android.layoutlib.bridge.android.BridgeContext.obtainStyledAttributes(BridgeContext.java:638)at android.content.res.Resources_Theme_Delegate.obtainStyledAttributes(Resources_Theme_Delegate.java:71)at android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java:1436)at android.widget.TextView.(TextView.java:761)at android.widget.TextView.(TextView.java:704)at android.widget.TextView.(TextView.java:700)at com.android.layoutlib.bridge.MockView.(MockView.java:50)at com.android.layoutlib.bridge.MockView.(MockView.java:45)at com.android.layoutlib.bridge.MockView.(MockView.java:41)at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:163)at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)at android.view.LayoutInflater.inflate(LayoutInflater.java:492)at com.android.layoutlib.bridge.bars.CustomBar.(CustomBar.java:95)at com.android.layoutlib.bridge.bars.StatusBar.(StatusBar.java:67)at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:222)at com.android.layoutlib.bridge.impl.Layout.(Layout.java:144)at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:297)at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:350)at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:520)at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:508)at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:967)at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:508)at com.android.tools.idea.rendering.RenderTask.access$600(RenderTask.java:75)at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:620)at com.android.tools.idea.rendering.RenderTask$3.call(RenderTask.java:617)at com.android.tools.idea.rendering.RenderService.runRenderAction(RenderService.java:371)at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:617)at com.android.tools.idea.rendering.RenderTask.render(RenderTask.java:639)at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:654)at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1700(AndroidLayoutPreviewToolWindowManager.java:82)at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7$1.run(AndroidLayoutPreviewToolWindowManager.java:596)at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$7.run(AndroidLayoutPreviewToolWindowManager.java:591)at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:337)at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:327)at com.intellij.util.ui.update.MergingUpdateQueue$3.run(MergingUpdateQueue.java:271)at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:286)at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:244)at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:234)at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)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)

有谁知道如何解决这个问题?

我遇到了同样的问题,您可以更改您的android版本以在预览窗口中呈现布局。

看到这篇文章:

\"*\"

change the android version provided to render layouts from Android Studio back to\"API 23: Android 6.0




See more: Vmas 2015: Miley Cyrus Wardrobe Malfunction Vmas 2015, Miley Cyrus Flashes Her Nipple During The Vmas

JessYuan为什么你还没有接受这个答案?哎呀,谷歌不测试吗? 对于使用所有默认设置的全新项目,这发生在我身上。 他们必须只用棉花糖测试了最新版本。因此,没有这个bug,没有办法获得N预览吗?当Android Studio尝试显示API 24的布局时,此答案解决了我的问题谢谢男人,它解决了渲染问题