天天看点

android studio 2.2 preview,Android studio 2.2 preview 5设计编辑器/预览似乎被打破了?

从Android Studio 2.2预览版4更新到5之后,Design and Preview选项卡停止显示预览。Android studio 2.2 preview 5设计编辑器/预览似乎被打破了?

它们不显示任何内容,只显示错误(如下所述)和提示“尝试刷新布局”。

刷新并在顶部栏中选择不同的选项(API,设备方向)不起作用。

正在尝试文件 - >无效缓存/重新启动。也没有帮助。

有什么建议吗?

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$1.compute(ResourceResolverCache.java:166)

at com.android.tools.idea.configurations.ResourceResolverCache$1.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$52(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。