java - 在包 'orientaton' Activity_main.xml 中找不到属性 'android' 的资源标识符

标签 java android

我在调试“hello world”应用程序时遇到了此错误,如 Android 开发入门教程中所示。这是我的完整的activity_main.xml

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientaton="horizontal">
<EditText android:id="@+id/edit_message"
    android:layout_weight="1"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:hint="@string/edit_message" />
<Button
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/button_send" />

我真的需要一些帮助,因为我相信这是教程中出现的击键。

最佳答案

您拼错了orientation - orientat i on,而不是orientaton

关于java - 在包 'orientaton' Activity_main.xml 中找不到属性 'android' 的资源标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16350058/

相关文章:

android - dalvik VM VFY代码的含义

android - 如何在图像上创建 slider

java - 在 jackcess 中查找带有是/否类型列的行

java - 如何使用java读取android中符号链接(symbolic link)的目标

java - 如何修复 Fortify 路径操纵(输入验证和表示、数据流)漏洞

Android 11 不会在外部存储上创建应用目录

android - 将 Gson 转换为对象?

Java:将对象突变限制在特定方法内

java - 传递带有 Intent 的 Integer 会导致空对象引用

android - 以编程方式多次更改操作栏颜色