I am using okhttp3 to connect my android application to my mysql database but it gives me an error while using FormBody.Builder() (I see other using this method).
I need to execute a post request.
OkHttpClient client = new OkHttpClient();
RequestBody formBody = new FormBody.Builder() //this FormBody gives "Cannot resolve symbol FormBody"
.add("name", reg_name)
.add("pass", reg_pass)
.build();
Request request = new Request.Builder()
.url(reg_url)
.post(formBody)
.build();