First timer android development
<p>I have been trying to work out my first android app with samples and code from the internet.
Following them I got the following error</p>

<pre><code>**"Brew_Time_Add cannot be resolved or is not a field."** 
</code></pre>

<p>for the line in the code </p>

<pre><code>**Button brewAddTime = (Button) findViewById(R.id.brew_time_up);**
</code></pre>

<p><strong>The xml for this part -</strong> </p>

<pre><code>&lt;LinearLayout
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:gravity="center"
    android:padding="10dip"&gt;
    &lt;Button
      android:id="@+id/brew_time_down"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="-"
      android:textSize="40dip" /&gt;
    &lt;TextView
      android:id="@+id/brew_time"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="0:00"
      android:textSize="40dip"
      android:padding="10dip" /&gt;
    &lt;Button
      android:id="@+id/brew_time_up"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="+"
      android:textSize="40dip" /&gt;
  &lt;/LinearLayout&gt;
</code></pre>

<p><strong>The Java Code for the same -</strong> </p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        Button brewAddTime = (Button) findViewById(R.id.brew_time_up);
        Button brewDecreaseTime = (Button) findViewById(R.id.brew_time_down);
            Button startBrew = (Button) findViewById(R.id.brew_start);
            TextView brewCountLabel = (TextView) findViewById(R.id.brew_count_label);
            TextView brewTimeLabel = (TextView) findViewById(R.id.brew_time);

    }
</code></pre>

<p>Why is the error and how can it be solved?  </p>

<p>Please see image at- <a href="http://db.tt/kbjq6u5o" rel="nofollow">http://db.tt/kbjq6u5o</a></p>

<p>Thanks in advance.</p>
