title: MediaPlayer Cannot resolve method create
body: <p><strong>Problem solved!
  I had a very dumb fail in the .xml where i forgot an "@+id/"..
  also i had to clear the project so this annoying error with R cannot be resolved got away..</strong></p>
  
  <hr>
  
  <p>After i tries some codes it left the error..
  it also displays a notice, that he can't understand R.</p>
  
  <p>Code: <a href="http://pastebin.com/X5nrMHK2" rel="nofollow">http://pastebin.com/X5nrMHK2</a></p>
  
  <hr>
  
  <p>i got a little problem with the MediaPlayer..</p>
  
  <p>I want to play the Sound eightsound in the res/raw folder when pressing on the Button eight..</p>
  
  <p>Here is my Code:</p>
  
  <pre><code>package com.iklikla.eightgame;
  
  import android.media.MediaPlayer;
  import android.os.Bundle;
  import android.app.Activity;
  import android.view.View;
  import android.widget.Button;
  
  public class MainActivity extends Activity {
  Button eight;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      eight.setOnClickListener(new View.OnClickListener() {
          public void onClick(View v) {
              MediaPlayer mp = MediaPlayer.create(MainActivity .this,R.raw.eightsound);
              mp.start();
          }
      });
  }
  
  }
  </code></pre>
  
  <p>The error is on line 22</p>
  
  <pre><code>MediaPlayer mp = MediaPlayer.create(MainActivity .this,R.raw.eightsound);
  </code></pre>
  
  <p>It says: Cannot resolve method 'create(com.iklikla.eightgame.MainActivitym ?)</p>