title: Cannot resolve symbol Youtube in Android
body: <p>I am really frustrated with this I followed all the steps to add the google api for youtube in my android project and I still having this error: <strong>Cannot resolve symbol Youtube</strong> </p>
  
  <p>Here is my java class: </p>
  
  <pre><code>  import android.app.Activity;
  import android.os.Bundle;
  import android.widget.GridView;
  
  import com.google.android.youtube.player.YouTubePlayer;
  import com.google.android.youtube.player.YouTubeThumbnailLoader;
  import  com.google.api.services.youtube.YouTube;
  
  
  import java.util.List;
  
  
  
  
  public class VideoCatalogActivity extends Activity implements YouTubeThumbnailLoader, YouTubePlayer{
  
      private static final String TAG =  VideoCatalogActivity.class.getSimpleName();
  
      private static Youtube youtube;
  
      GridView videosGrid;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
      }
  </code></pre>
  
  <p>and this is my app gradle file:</p>
  
  <pre><code>     buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
          debug {
              debuggable true
          }
  
      }
  }
  
  dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      compile files('libs/YouTubeAndroidPlayerApi.jar')
      compile files('libs/picasso-2.4.0.jar')
      compile 'com.android.support:appcompat-v7:24.2.0'
      compile 'com.android.support:recyclerview-v7:24.2.0'
      compile 'com.facebook.android:facebook-android-sdk:[4,5)'
      compile 'com.google.firebase:firebase-core:9.4.0'
      compile 'com.google.firebase:firebase-auth:9.4.0'
      compile 'com.google.android.gms:play-services-auth:9.4.0'
      compile 'com.google.apis:google-api-services-youtube:v3-rev178-1.22.0'
  
      testCompile 'junit:junit:4.12'
  
  }
  
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>What am I doing wrong ?</p>
  
  <p>Any help would be very appreciated !</p>