IntelliJ Idea呈现main.xml错误

时间:2014-09-30 19:32:17

标签: java android intellij-idea

我刚刚切换到IntelliJ,并希望将其用作我的Android IDE,但似乎在渲染我的main.xml文件时出现问题。这是我得到的错误:

Rendering Problems 
This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA (Details)

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 com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:485)
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)

我尝试过这个类似线程的所有建议解决方案:Intellij Idea Render error

  1. 已卸载SDK Build-Tools v20并已安装SDK Build-Tools v18.0.1
  2. 将预览标签中的Android SDK降级为API 18:Android 4.3.1
  3. 根据较低的Android SDK
  4. 删除并重新制作项目

    我似乎仍然无法让IntelliJ进行预览,而我却不知道如何进行下一步的排查。

1 个答案:

答案 0 :(得分:0)

可能是错误,我已经提到here

它已在IntelliJ EAP 14中修复(Issue Tracker) 它也在最新的13.1.5版本中得到修复。