android - Unable to import import com.google.api.client.http.HttpTransport -


i unable import com.google.api.client.http.httptransport

i have tried downloading dependencies https://developers.google.com/api-client-library/java/google-api-java-client/download

and adding them project by
project > open module settings > dependencies > + > file dependency > google-api-client-android-1.20.0.jar > ok

with no luck.

  • copy google-http-client-1.20.0.jar app/libs

enter image description here

  • add compile filetree(dir: 'libs', include: ['*.jar']) app/build.gradle in dependencies.
  • go tools --> android--> sync project gradle files.

now can import class:)

enter image description here


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -