android前端與php後端鏈接(以登陸爲例)

對於前端Android: 1.本例子採用的網絡通訊框架爲OkHttp。 須要引入jar包爲:implementation ‘com.squareup.okhttp3:okhttp:3.8.1’php 2.解析JSON用的爲Gson(固然能夠採起自帶的解析方式,Gson更爲方便,且官方也推薦) 須要引入jar包爲:implementation ‘com.google.code.gson:gson:2
相關文章
相關標籤/搜索