Android Studio Rendering Library [duplicate]

2019-01-22 12:12发布

问题:

This question already has an answer here:

  • Android Studio rendering problems 13 answers

I just created Test project inside of Android Studio and I'm getting following message:

Summary:

Rendering Problems: This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio.

Details:

org.jetbrains.android.uipreview.RenderingException: This version of the rendering library is more recent than your version of Android Studio. Please update Android Studio
    at org.jetbrains.android.uipreview.LayoutLibraryLoader.load(LayoutLibraryLoader.java:90)
    at org.jetbrains.android.sdk.AndroidTargetData.getLayoutLibrary(AndroidTargetData.java:159)
    at com.android.tools.idea.rendering.RenderService.createTask(RenderService.java:164)
    at com.intellij.android.designer.designSurface.AndroidDesignerEditorPanel$6.run(AndroidDesignerEditorPanel.java:475)
    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:351)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    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)

Yet my Android Studio IS up to date, as I check it via Help -> Check for Update and I get Your already have the latest version of Android Studio installed.

回答1:

Ahh, I found that Preview Android Versions should be changed from API 22: Android M (Preview) to any Non-Preview Android Version.



回答2:

This issue has been fixed now with the latest update 1.2.2.

http://tools.android.com/recent/androidstudio122nowavailable