title: Binary XML file line #41: You must supply a layout_width attribute
body: <p>hey guys i'm working on a android app when the button equtime is pressed it should open Moainstallerview.java but when I test the app the app crashes :( logcat gives this error:</p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.d4a.stz/jp.yhonda.MOAInstallerActivity}: java.lang.RuntimeException: Binary XML file line #41: You must supply a layout_width attribute.
  </code></pre>
  
  <p>heres my code:</p>
  
  <pre><code>moainstallerview.xml
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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:orientation="vertical"
      tools:context=".MOAInstallerActivity" &gt;
  
      &lt;CheckedTextView
          android:id="@+id/checkedTextView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:padding="8dp"
          android:text="Equation Time on Android installs additional 85MB of data. Please                 choose the install location and press Install." /&gt;
  
      &lt;RadioGroup
          android:id="@+id/radiogroup"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;RadioButton
              android:id="@+id/radioButton1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Internal Storage" /&gt;
  
          &lt;RadioButton
              android:id="@+id/radioButton2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="External Storage (SD Card)" /&gt;
      &lt;/RadioGroup&gt;
  
      &lt;!-- Push the button bar to the bottom --&gt;
      &lt;View
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:layout_weight="1" /&gt;
  
      &lt;!-- Divider above the button bar --&gt;
      &lt;View style="?attr/buttonBarDividerStyle" /&gt;
  
      &lt;LinearLayout
          style="?attr/buttonBarStyle"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;Button
              android:id="@+id/button2"
              style="?attr/buttonBarButtonStyle"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="Cancel" /&gt;
  
          &lt;Button
              android:id="@+id/equtime"
              style="?attr/buttonBarButtonStyle"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:text="Install" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>i'm getting upset so any help would be amazing i'm a android rookie so please don't judge</p>
  
  <p>Regards </p>
  
  <p>Rapsong11</p>