Android studio 2.2 preview 5 design editor/preview 好像坏了?

Android studio 2.2 preview 5 design editor/preview seem to be broken?

从 Android studio 2.2 预览版 4 更新到 5 后,设计和预览选项卡停止显示预览。

它们不显示任何内容,仅显示错误(如下所述)和提示 "Try to refresh the layout"。

在顶部栏(API、设备方向)中刷新和选择不同的选项没有帮助。

正在尝试文件 -> 无效 Caches/Restart。也没有用。

有什么建议吗?

java.nio.file.InvalidPathException: Illegal char <:> at index 8: @android:drawable/ic_menu_send
at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
at java.nio.file.Paths.get(Paths.java:84)
at com.android.ide.common.res2.ResourceItem.parseFileName(ResourceItem.java:585)
at com.android.ide.common.res2.ResourceItem.parseXmlToResourceValue(ResourceItem.java:405)
at com.android.ide.common.res2.ResourceItem.getResourceValue(ResourceItem.java:240)
at com.android.ide.common.res2.AbstractResourceRepository.getConfiguredResources(AbstractResourceRepository.java:393)
at com.android.ide.common.res2.AbstractResourceRepository.getConfiguredResources(AbstractResourceRepository.java:349)
at com.android.tools.idea.configurations.ResourceResolverCache.compute(ResourceResolverCache.java:166)
at com.android.tools.idea.configurations.ResourceResolverCache.compute(ResourceResolverCache.java:163)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:966)
at com.android.tools.idea.configurations.ResourceResolverCache.getResourceResolver(ResourceResolverCache.java:163)
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(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)


UPD1: 似乎是 issue.

在您的 activity.xml 文件中,必须有一行 xmlns:app=""。删除它。

xml文件检查有误 android:xmlns:app=""

已在 Android studio 2.2 (Canary) Preview 6 中修复(另请参阅 issue)。