UrlConstants報(bào)錯(cuò),提示Cannot reslove symbol UrlConstants,麻煩老師解答一下
Request?request?=?new?Request.Builder().url(UrlConstants.USER_LOGIN). ????????post(formBodyBuild.build()).build();
這段代碼中打Url的時(shí)候沒(méi)有UrlConstants選項(xiàng),手動(dòng)打上去之后報(bào)錯(cuò)提示Cannot reslove symbol UrlConstants
2020-02-12
?UrlConstants是老師自己在項(xiàng)目中封裝的請(qǐng)求地址工具類(lèi)中的一個(gè)服務(wù)器地址,并不是okhttp中的真正內(nèi)容,只是為了讓例子運(yùn)行起來(lái)而已。