简体   繁体   中英

Is it possible to use ApiFuture in Gradle, Android project?

I am currently trying to use "ApiFuture" because tasks are a pain to use throughout a big project. Is there any way that I can use ApiFutures in my android project? I have searched the web and haven't been able to find anything. The Android project is supported by Gradle if that information helps. Thanks!

You can use this implementation

repositories {
  mavenCentral()
}
dependencies {
  implementation 'com.google.api-client:google-api-client:1.25.0'
}

For more information you can take a look at Google Api Client Libraries and if you want an example take a look at this firebase-asynchronous-operations-with-admin-java-sdk-82ca9b4f6022 , this guy is using ApiFuture

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM