Guest User

Untitled

a guest
Apr 21st, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import com.google.gson.Gson;
  2. import com.google.gson.GsonBuilder;
  3. import okhttp3.Credentials;
  4. import okhttp3.OkHttpClient;
  5. import retrofit2.Retrofit;
  6. import retrofit2.converter.gson.GsonConverterFactory; //marca el error
  7.  
  8.  
  9. /**
  10. *
  11. * @author
  12. */
  13. public class ConfigRetrofit {
  14.  
  15. private static final String url = "mi url";
  16.  
  17. private static final OkHttpClient.Builder httpClient = new OkHttpClient.Builder();
  18.  
  19.  
  20. private static Retrofit.Builder builder =
  21. new Retrofit.Builder()
  22. .baseUrl(url)
  23. .addConverterFactory(GsonConverterFactory.create())
  24. ;
Add Comment
Please, Sign In to add comment