如何使用retrofit去請求網絡

引入:java compile 'com.google.code.gson:gson:2.8.0' compile 'com.squareup.retrofit2:retrofit:2.4.0' compile 'com.squareup.retrofit2:converter-gson:2.4.0' 由於retrofit已經包含了okhttp的庫,因此就不要額外引入okhttp了json 咱們
相關文章
相關標籤/搜索