Am trying to use the GsonFactory
class in my app:
StudentApi.Builder builder = new StudentApi.Builder(AndroidHttp.newCompatibleTransport(), new GsonFactory(), null);
but it says cannot resolve symbol 'GsonFactory'
I have the import in my class
import com.google.api.client.json.gson.GsonFactory;
but gson
couldn't be resolved so I tried Alt-Enter - Find jar on web
but the library couldn't be found.
I have this in my 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 that this class does exist.