Jon*_*nas 27 xml layout android intellij-idea android-studio
将新活动添加到我的项目后,我在编译布局时遇到以下错误
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为所有不在默认文件夹中的布局文件引发了错误../res/drawable/,而是放在我自己的子文件夹中../res/drawable/backup.
| 归档时间: |
|
| 查看次数: |
70142 次 |
| 最近记录: |