【问题标题】:intelliJ android UI rendering problems - Missing LibraryintelliJ android UI 渲染问题 - 缺少库
【发布时间】:2014-07-20 22:05:02
【问题描述】:

经过一番头疼之后,我似乎已经在 IntelliJ Ultimate 中运行了我的第一个 hello world 应用程序。我今天下载了最新的终极版。

当我尝试在 UI 设计器中打开 main.xml 时,出现以下错误。

有人可以帮忙吗?我喜欢 intelliJ 提供的视频中 UI 设计师的外观:http://www.jetbrains.com/idea/features/android-tutorials.jsp

提前致谢

This version of the rendering library is more recent than your version of IntelliJ IDEA. Please update IntelliJ IDEA

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:724)

【问题讨论】:

    标签: android intellij-idea intellij-13


    【解决方案1】:

    尝试在下拉列表中选择 API 19 而不是 20。

    【讨论】:

    • 嗨@PanWrona。今天晚些时候我会检查的。出于兴趣,您是什么意思的下拉菜单?
    • 您在设计窗口上方有一些选项,例如选择设备类型,设备位置(横向或纵向)以及我之前提到的 - API 下拉列表,您可以在其中选择 API 版本
    • 社区版支持吗?我遇到了与 OP 相同的问题,但我无法选择不同的渲染版本。下拉列表仅包含“自动选择最佳”。
    • 嗯,我从来没有使用过社区版本,所以我想我帮不了你:(
    【解决方案2】:

    在预览选项卡中,只需打开最后一个下拉列表并选择较低的 Android SDK。就我而言,我选择了 Android 4.4.2,预览立即出现。

    【讨论】:

      【解决方案3】:

      此版本的渲染库比您的 IntelliJ IDEA 版本更新。请更新 IntelliJ IDEA

      你可以找到错误的答案,按照这条线更新你的想法 14 Ultimate 这是 intellij 的新版本

      【讨论】:

      • 感谢@ihsanbal 的回复。从这个链接jetbrains.com/idea/download 版本 13 是最新的。你从哪里得到 14 个?
      • 来自这个链接:confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP 有两个不同的版本'社区版'和'终极版'我建议你选择终极版。
      • 感谢@ihsanbal。我认为这会解决它,但我宁愿不参加 EAP。我花了足够长的时间来设置其他所有东西;)
      猜你喜欢
      • 2016-03-08
      • 2016-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 2014-01-18
      • 1970-01-01
      相关资源
      最近更新 更多