Android 네트워크 통신을 위한 Retrofit 프레임워크 활용 가이드
의존성 라이브러리 추가
Retrofit을 사용하기 위해선 먼저 Gradle에 필요한 라이브러리를 포함해야 한다. 아래는 주요 의존성 설정 예시이다.
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.retrofit2 ...
6월 16일 02:13에 게시됨
레트로핏 기본 사용 가이드
一、의존성 추가 및 네트워크 권한 설정
의존성 추가
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일 07:28에 게시됨