所以我尝试了Android Studio,因为我非常喜欢Resharper,并注意到IDE内置了一些功能.现在创建了一个默认的新项目,我添加了一个新的布局文件,并希望更改现有的默认"hello world"示例布局,并在以下行中出现"URI未注册"错误:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
Run Code Online (Sandbox Code Playgroud)
我还没有对默认生成的项目做任何其他事情.我遇到了另一个似乎相关的问题(Intellij Android项目模式URI没有注册?),但忽略一些东西对我来说很奇怪.我实际上尝试过,但这导致RelativeLayout(以及可能所有其他Android相关的东西)不再被识别(错误消息:"找不到元素'RelativeLayout'的声明").
关于如何解决这个问题的任何想法?
将新活动添加到我的项目后,我在编译布局时遇到以下错误
Gradle:解析XML时出错:格式不正确(无效令牌)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/tv_password"
android:text="<password>"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
" http://schemas.android.com/apk/res/android "标记为红色,并在消息传出后悬停
URI未注册(设置|项目设置|架构和DTD)
我的设置>项目设置>模式和DTD如下所示:

我已经在这里找到了一些类似的问题,但没有任何帮助我解决这个问题.我希望有人有个主意...... :)
我刚刚安装了Android Studio,一切运行正常,但是在我的计算机关闭后我第二次打开了AS,我收到以下错误:
"URI is not Registered"
Run Code Online (Sandbox Code Playgroud)
在以下代码行中:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Run Code Online (Sandbox Code Playgroud)
这只是清单,但它在所有带有该链接的XML文件上发生.我搜索过Stack并没有找到解决我问题的方法.