Cannot resolve symbol 'Spinner'
<p>I'm just trying to screw around in Android Studio and at the moment, I'm trying to figure out how to get the selected text of a spinner.</p>

<p>Here is my relevant code</p>

<pre><code>package dgameman1.com.emojifixer;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);    

        Spinner  emojiSpinner = (Spinner)findViewById(R.id.emojiSpinner);
        final String selectedSpinnerText = emojiSpinner.getSelectedItem().toString();
        Button installNewEMojis = (Button) findViewById(R.id.installEmojisButton);
        installNewEMojis.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Snackbar.make(view, selectedSpinnerText, Snackbar.LENGTH_LONG)
                        .setAction("Action", null).show();

            }
        });


    }

}
</code></pre>

<p>The issue I have right now is with this</p>

<pre><code>Spinner  emojiSpinner = (Spinner)findViewById(R.id.emojiSpinner);
String selectedSpinnerText = emojiSpinner.getSelectedItem().toString();
</code></pre>

<p>'Spinner' is a red color and when I over my mouse over it, I get the error</p>

<blockquote>
  <p>Cannot resolve symbol 'Spinner'</p>
</blockquote>