레트로핏 기본 사용 가이드
一、의존성 추가 및 네트워크 권한 설정
의존성 추가
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// 선택 사항
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
첫 번째 의존성은 Retrofit, OkHttp 및 Okio 라이브러리를 다운로드하며, OkHttp 라이브러리를 수동으로 ...
5월 21일 16:28에 게시됨