androidapigoogle-drive-apiimage-uploadingandroid-studio-import

Cannot resolve symbol "api" in "com.google.api"


I am using Android Studio 1.3 in which I want to build an app which upload images to Google Drive. I am following Google Drive Android Quickstart to build my app, but when I use the code from this project then this error appears:

I also imported the google-play-services.jar file into my project but this error still appearing.


Solution

  • You are likely missing

    compile 'com.google.android.gms:play-services-drive:8.4.0'
    

    from your gradle dependencies