retrofit = Retrofit.Builder() .baseUrl(baseUrl) //加上這條就可以,要放在gson前面 .addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(GsonConverterFactory.create(gson)) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .client(httpClient) .build()
2020-03-12
Android - retrofit 檔案上傳用 Mutipart 後端會多雙引號""
- 239
- 0
- Android 學習中