0
我剛剛切換到IntelliJ並希望將其用作我的Android IDE,但它似乎在渲染我的main.xml
文件時出現問題。這裏是我的錯誤:IntelliJ Idea render 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
- 卸載SDK構建工具V20和安裝SDK構建工具v18.0.1
- 下調的Android SDK預覽選項卡API 18:安卓4.3.1
- 刪除重拍項目基於較低的Android SDK
我似乎仍然無法使IntelliJ呈現預覽,並且我無法接受下一個如何解決問題。
您是否按照錯誤消息提示並更新了您的IntelliJ IDEA版本? – 2014-09-30 19:39:26
@CoryKlein我在IntelliJ的最新版本。 – raphnguyen 2014-09-30 19:50:10