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에 게시됨