Don't ask chat Gemini for these libraries, it was terrible to give an advice.
Here are the code for libs.versions.toml:
[versions]
coil = "2.4.0"
retrofit = "2.9.0"
okhttp = "4.10.0"
[libraries]
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okhttp-logging = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp" }
retrofit-converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
Here is the code of build gradle:
//coil
implementation(libs.coil.compose)
// Retrofit
implementation(libs.retrofit)
implementation(libs.retrofit.converter.gson)
// OkHttp
implementation(libs.okhttp)
implementation(libs.okhttp.logging)
Watch video how to add coil, retrofit and okhttp dependencies in android studio new version || Toml libs version online, duration hours minute second in high quality that is uploaded to the channel Holy_Dev 24 November 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 68 times and liked it 2 visitors.