渲染问题 [英] Rendering problems
问题描述
我与IDEA很奇怪的问题遇到过。如果我选择任何API级别小于20,我得到错误
这渲染库的版本比你的IntelliJ IDEA的版本新,请更新的IntelliJ IDEA(详细信息)
截图:
堆栈跟踪:
org.jetbrains.android.ui preview.RenderingException:这个版本的渲染库比你的IntelliJ IDEA的版本更近一些。请更新的IntelliJ IDEA\r
在org.jetbrains.android.ui preview.LayoutLibraryLoader.load(LayoutLibraryLoader.java:90)\r
在org.jetbrains.android.sdk.AndroidTargetData.getLayoutLibrary(AndroidTargetData.java:149)\r
在com.android.tools.idea.rendering.RenderService.create(RenderService.java:167)\r
\t在org.jetbrains.android.ui$p$pview.AndroidLayout$p$pviewToolWindowManager.doRender(AndroidLayout$p$pviewToolWindowManager.java:583)\r
\t在org.jetbrains.android.ui$p$pview.AndroidLayout$p$pviewToolWindowManager.access$1900(AndroidLayout$p$pviewToolWindowManager.java:80)\r
\t在org.jetbrains.android.ui$p$pview.AndroidLayout$p$pviewToolWindowManager$6$1.run(AndroidLayout$p$pviewToolWindowManager.java:528)\r
在com.intellij.openapi.progress.impl.ProgressManagerImpl $ 2.run(ProgressManagerImpl.java:178)\r
在com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)\r
\t在com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)\r
在com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)\r
\t在org.jetbrains.android.ui$p$pview.AndroidLayout$p$pviewToolWindowManager$6.run(AndroidLayout$p$pviewToolWindowManager.java:523)\r
在com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:320)\r
在com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:310)\r
在com.intellij.util.ui.update.MergingUpdateQueue $ 2.run(MergingUpdateQueue.java:254)\r
在com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:269)\r
在com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:227)\r
在com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:217)\r
在com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)\r
在com.intellij.util.Alarm $ $请求1.run(Alarm.java:327)\r
在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)\r
在java.util.concurrent.FutureTask.run(FutureTask.java:262)\r
在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r
在java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:615)\r
在java.lang.Thread.run(Thread.java:745)
\r
时有人能帮助我吗?
这是一个错误:
问题是JetBrains的未更新的IntelliJ 13作为必需的。它已被固定在的IntelliJ 14 EAP但是,该补丁还没有被移植回13。
块引用>错误修复被列入13.1.5,所以你不需要使用EAP版本。
I encountered with very strange problem with IDEA. If I choose any api level less than 20, I get error "This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA (Details)"
Screenshot:
Stacktrace:
org.jetbrains.android.uipreview.RenderingException: This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA at org.jetbrains.android.uipreview.LayoutLibraryLoader.load(LayoutLibraryLoader.java:90) at org.jetbrains.android.sdk.AndroidTargetData.getLayoutLibrary(AndroidTargetData.java:149) at com.android.tools.idea.rendering.RenderService.create(RenderService.java:167) at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.doRender(AndroidLayoutPreviewToolWindowManager.java:583) at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager.access$1900(AndroidLayoutPreviewToolWindowManager.java:80) at org.jetbrains.android.uipreview.AndroidLayoutPreviewToolWindowManager$6$1.run(AndroidLayoutPreviewToolWindowManager.java:528) 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$6.run(AndroidLayoutPreviewToolWindowManager.java:523) 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:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)
Is somebody can help me please?
解决方案It's a bug:
The issue is that JetBrains hasn't updated IntelliJ 13 as required. It has been fixed in IntelliJ 14 EAP but the fix hasn't been ported back to 13.
The bug fix was included in 13.1.5, so you don't need to use an EAP version.
这篇关于渲染问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!