我在调试“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/