I'm new to Android and I'm following this tutorial(https://developer.android.com/develop/connectivity/cronet/start#java)
It says to add this dependency in my build.gradle.kts file, it looks like this:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
}
dependencies {
implementation(libs.play.services.cronet)
}
Unfortunately this error shows up:
Unresolved reference: implementation
And the log file says this:
Line 7: implementation("com.google.android.gms:play-services-cronet:18.1.0")
^ Unresolved reference: implementation
It seems like something needs to be pulled in somewhere. It seems to be that the build system doesn't have some file which defines "implementation". I'm not sure which file that is and where I could add it in the config.
Thanks