Search code examples
androidkotlindependenciesbuild.gradleretrofit2

how to write retrofit dependency in this libs format


Not able to add this dependency in build.gradle com.squareup.retrofit2:retrofit:2.9.0 I don't know how to write dependencies in this new gradle version. Tried Not able to do this implementation(libs.com.squareup.retrofit2:retrofit:2.9.0)


Solution

  • I did it, By editing libs.versions.toml libs file Then I was able to use it. build.gradle

    Thanks for your time.