title: Why I can not import android.support.v4.content.ContextCompat in my AndroidStudio project?
body: <p>In my project, I want to use <code>getDrawable();</code> method from <code>ContextCompat</code> class, like this (almost at the end of this code):</p>
  
  <pre><code>    @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_detalle);
  
          TextView tvTitulo = (TextView)findViewById(R.id.text_valorTitulo);
          TextView tvIsbn = (TextView)findViewById(R.id.text_valorIsbn);
          TextView tvFecha = (TextView)findViewById(R.id.text_valorFecha);
          ImageView ivLibro = (ImageView)findViewById(R.id.image_libro);
          Button btnAceptar = (Button)findViewById(R.id.button_ok);
  
          Intent intent = getIntent();
          if(intent.getExtras() != null){
              isbn = intent.getStringExtra("isbn");
              fechaPublicacion = intent.getStringExtra("fechaPublicacion");
              titulo = intent.getStringExtra("titulo");
              idImagen = intent.getIntExtra("imagen", R.mipmap.ic_launcher);
  
              tvTitulo.setText(titulo);
              tvIsbn.setText(isbn);
              tvFecha.setText(fechaPublicacion);
              Drawable drawable = ContextCompat.getDrawable(this, idImagen);
              ivLibro.setImageDrawable(drawable);
      }
  }
  </code></pre>
  
  <p>But this line <code>Drawable drawable = ContextCompat.getDrawable(this, idImagen);</code> gives me an error:</p>
  
  <blockquote>
    <p>Cannot resolve symbol 'ContextCompat'</p>
  </blockquote>
  
  <p>The stackoverflow.com user @Mark F did a similar question like this before (<a href="https://stackoverflow.com/q/31733044/5401584">Mark F question in SOF</a>), and an user replied, even @Mark F made a YouTube video, but I did what the video says and I can not achieve import the respective library to use this class.</p>
  
  <p>I just added <code>import android.support.v4.content.ContextCompat;</code> at the top, but this does not work.</p>
  
  <p>I added this to my build.gradle file like the user replied to Mark F but still not working</p>
  
  <pre><code>dependencies {
      compile 'com.android.support:support-v4:23.0.0'
  }
  </code></pre>
  
  <p>Could someone tell me what I'm doing wrong?</p>