MultipartBuilder can't be resolved in okhttp:3.0.0-RC1

前端 未结 1 1499
甜味超标
甜味超标 2020-12-20 12:19

I have used okhttp and It\'s working fine with following dependency:

compile \'com.squareup.okhttp:okhttp:2.3.0\'

Recently

1条回答
  •  隐瞒了意图╮
    2020-12-20 12:57

    It is called MultipartBody.Builder now. From the ChangeLog:

    Form and Multipart bodies are now modeled. We've replaced the opaque FormEncodingBuilder with the more powerful FormBody and FormBody.Builder combo. Similarly we've upgraded MultipartBuilder into MultipartBody, MultipartBody.Part, and MultipartBody.Builder.

    You can read more here.

    0 讨论(0)
提交回复
热议问题