【问题标题】:Why is the Android Namespace URI not accessable?为什么无法访问 Android 命名空间 URI?
【发布时间】:2013-07-07 12:20:41
【问题描述】:

我打算将我的一个项目提交给 Bitbucket,然后我的 XML 布局文件中出现了一些错误,即 URI 未注册。 我的 XML 文件中有以下 URI:http://schemas.android.com/apk/res/android 它们是自动添加的,所以我不在乎。但是现在android studio说:

 URI is not registered (Settings | Project Settings | Schemas and DTDs)

那我该怎么办。忽略错误还是有办法解决这个问题?

它发生的一个例子:

<menu xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@+id/action_settings"
      android:title="@string/action_settings"
      android:orderInCategory="100"
      android:showAsAction="never"/>
</menu>

【问题讨论】:

  • 我编辑了它,但请不要发誓。这不是 Facebook 或 YouTube。

标签: android namespaces uri android-studio


【解决方案1】:

此问题已在android:issues 报告

如您所见,如果您尝试在构建文件夹中编辑布局文件,就会发生这种情况。
您不应该在那里编辑或创建新的,它们是生成的。

【讨论】:

  • 我现在排除了我的 git 上传的构建文件夹。现在一切都很完美:)
猜你喜欢
  • 2012-09-04
  • 1970-01-01
  • 2020-04-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-09-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多