gpt4 book ai didi

缺少 Android 布局编辑器

转载 作者:行者123 更新时间:2023-11-30 03:51:11 31 4
gpt4 key购买 nike

我现在尝试在 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 二进制 XML 编辑器
  • Android 通用 XML 编辑器
  • Android 导出编辑器
  • Android list 编辑器

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

最佳答案

尝试通过 SDK 管理器更新 android 工具,我遇到过一次这个问题,更新到最新版本修复了

关于缺少 Android 布局编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14122172/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com