繁体   English   中英

缺少Android版式编辑器

[英]Android Layout Editor missing

我试图立即在Eclipse中打开布局xml文件。 而且我只会得到错误

No XML content. Please add a root view or layout to your document.

想知道为什么这是一个问题,我的xml文件是正确的,例如:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/widget32"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" 
    android:background="#e4e8ed">

    <Logic.TouchImageView
        android:id="@+id/right_finger"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</LinearLayout>

我尝试右键单击.xml文件,然后使用Android Layout Editor其打开,但是在列表中找不到该编辑器。 我还尝试从“文件关联”下的“首选项”菜单中添加它,但是此处未显示编辑器。 唯一的android相关xml编辑器是:

  • Android Binary XML编辑器
  • Android通用XML编辑器
  • Android导出编辑器
  • Android清单编辑器

有人知道为什么会这样吗? 布局编辑器有很多错误,如果Google不更新它,我会发现很难使用此工具。

尝试通过SDK管理器更新android工具,我曾经遇到过这个问题,更新为最新版本已修复

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM