how to add ApiFuture interface to android project with gradle

Issue

I want to use ApiFuture interface from com.google.api.core package, but I don’t know how to import it in my android project.

Solution

To use Gradle, add the following lines to your build.gradle file of android project:

 repositories {
      mavenCentral()
  }
  dependencies {
      compile 'com.google.api-client:google-api-client:1.23.0'
  }

for more understanding you check Google reference doc for setup

Answered By – Prags

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published