android - Cannot resolve import com.google.api.client.json.gson.GsonFactory -
am trying use gsonfactory class in app:
studentapi.builder builder = new studentapi.builder(androidhttp.newcompatibletransport(), new gsonfactory(), null); but says cannot resolve symbol 'gsonfactory'
i have import in class
import com.google.api.client.json.gson.gsonfactory; but gson couldn't resolved tried alt-enter - find jar on web library couldn't found.
i have in build.gradle dependencies:
dependencies { ... compile 'com.google.code.gson:gson:2.3' compile 'com.google.api-client:google-api-client-android:1.19.0' } i can confirm class exist.
you need use library:
compile 'com.google.http-client:google-http-client-gson:1.19.0'
Comments
Post a Comment