Writing androidProgramAlways encounter such problems: Error parsing XML: unbound prefix and error: Invalid start tag linearlayout error.
The first problem was originally found to be an error in Android. below is the XML file that I wrote the error.
<? XML version = "1.0" encoding = "UTF-8"?>
<Linearlayout xmlns: Android = "http://schemas.android.com/apk/res/android"
Android: Orientation = "vertical"
Android: layout_width = "fill_parent"
Android: layout_height = "fill_parent"
>
<Textview
Android: layout_width = "fill_parent"
Android: layout_height = "wrap_content"
Android: text = "@ string/hello"
/>
<Button
Android: Id = "@ + ID/mybutton1"
Adnroid: Layout_width = "wrap_content"
Android: layout_height = "wrap_content"
Android: text = "@ string/str_button1"
/>
</Linearlayout>
Hidden :)
The second problem is that the main. xml file is in the wrong position, Khan.
The following are the uploaded images. We hope you can learn from them to avoid such problems.