I am trying to use a class GsonFactoryin my application:
StudentApi.Builder builder = new StudentApi.Builder(AndroidHttp.newCompatibleTransport(), new GsonFactory(), null);
but he says that cannot resolve symbol 'GsonFactory'
I have an import in my class
import com.google.api.client.json.gson.GsonFactory;
but gsoncould not resolve, so I tried Alt-Enter - Find jar on webbut could not find the library.
I have this in my dependency build.gradle:
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 exists .
source
share