For example, calling
api.getUserName(userId, new Callback() {...});
cause:
retrofit.RetrofitError: retrofit.
A possible solution would be to use JsonElement as the Callback type (Callback). In your original example:
api.getUserName(userId, new Callback() {...});
In the success method you can convert the JsonElement to either a String or a JsonObject.
JsonObject jsonObj = element.getAsJsonObject();
String strObj = element.toString();