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