IntelliJ IDEA Render error

JavaAndroidIntellij Idea

Java Problem Overview


I'm trying to set up IntelliJ IDEA for programming android but I can't render the main.xml.

> 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.RenderServiceFactory.loadLibrary(RenderServiceFactory.java:158) > at > org.jetbrains.android.uipreview.RenderServiceFactory.create(RenderServiceFactory.java:73) > at > org.jetbrains.android.sdk.AndroidTargetData.getRenderServiceFactory(AndroidTargetData.java:132) > at > org.jetbrains.android.uipreview.RenderUtil.renderLayout(RenderUtil.java:105) > at > com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$8.run(AndroidDesignerEditorPanel.java:346) > 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.Alarm$Request$1.run(Alarm.java:289) at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722)

enter image description here

This is the exception I get when I try to open the main.xml with the Android GUI Designer (IntelliJ Utility). I have the latest IDE version so I don't know what's happening here.

Java Solutions


Solution 1 - Java

IDEA does not have a render version for 4.3 yet. Try select version of Android that is less than 4.3 in the dropdown in the preview. It works for me.

Solution 2 - Java

In the preview tab simply open the last drop-down list and pick the lower Android SDK. In my case, I picked Android 4.4.2 and the preview appeared instantly.

Solution 3 - Java

There seems to be an incompatibility between IDEA and the latest release of the Android SDK Build-tools (18.1). Installing the slightly older version 18.0.1 should fix the problem.

Solution 4 - Java

In the preview tab simply open the last drop-down list and pick the lower Android SDK. In my case, I picked Android 4.4.2 and the preview appeared instantly.

it works for me

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJesusView Question on Stackoverflow
Solution 1 - JavaBershView Answer on Stackoverflow
Solution 2 - JavasandaloneView Answer on Stackoverflow
Solution 3 - JavaLennartView Answer on Stackoverflow
Solution 4 - JavatgfmisView Answer on Stackoverflow