OKHttp3的使用

 1. 使用AndroidStudio開發,在app的build.gradle文件中增長對okhttp3的依賴:android dependencies { implementation 'com.squareup.okhttp3:okhttp:3.10.0' } 2.網絡請求須要申請網絡權限,須要在AndroidManifest.xml配置:網絡 <uses-permission and
相關文章
相關標籤/搜索