Using Retrofit 2.0.1, there is a call function in my API interface defined in Android App:
@Multipart
@POST(\"api.php\")
Call doAPI(
@Part(
For your issue, please use as the documentation
Scalars (primitives, boxed, and String): com.squareup.retrofit2:converter-scalars
So, add compile 'com.squareup.retrofit2:converter-scalars:2.0.1'
into build.gradle
file
Then...
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(API_URL_BASE)
.addConverterFactory(ScalarsConverterFactory.create())
//.addConverterFactory(GsonConverterFactory.create())
.build();
Hope it helps!