I am using the following code and which throws the exception
accessTokenResponse = new GoogleAccessTokenRequest.GoogleAuthorizationCodeGrant(new NetHttpTransport(), new JacksonFactory(), CLIENT_ID,CLIENT_SECRET, authorizationCode, REDIRECT_URI).execute();
Exception:
java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.configure(Lorg/codehaus/jackson/JsonGenerator$Feature;Z)Lorg/codehaus/jackson/JsonFactory;
The JavaType class is in the jackson-core JAR, and the ObjectMapper class is in jackson-mapper are both of the same version.