scarletyy / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Use of GsonFactory in tasks-android-sample #839

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client - 1.15.0-rc
Java environment - Android

In com.google.api.services.samples.tasks.android.TasksSample.java, line 76 
reads:

final JsonFactory jsonFactory = GsonFactory.getDefaultInstance();

Unfortunately, there is no getDefaultInstance() method in 
com.google.api.client.json.gson.GsonFactory. This line should be:

final JsonFactory jsonFactory = new GsonFactory();

Original issue reported on code.google.com by kyl...@gmail.com on 4 Oct 2013 at 9:42