Android: How do I use the Gson converter in RetroFit?

Add compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2' to your build.gradlefile and get the dependency resolved or add corresponding jars to your bulid path.
then use GsonConverterFactory.create() to get the Converter Factory 
Try this with retrofit 2:
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'

Leave a Comment

Copyright © 2019 Soulmedic Theme All Rights Reserved | Design Themes

Atomic Flavor