I just create a new project in Android Studio without doing anything,when I want to import 'Okhttp',the problem just like the following shows.How can I solve the problem?Thank you for your help!
the code
implementation("com.squareup.okhttp3:okhttp:4.9.3")
the problems
Execution failed for task ':app:checkDebugDuplicateClasses'.Could not resolve all files for configuration ':app:debugRuntimeClasspath'.Could not find okhttp-4.9.3.jar (com.squareup.okhttp3:okhttp:4.9.3).
Best Answer
check doc url https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.9.0/jar
version 4.9.0
implementation 'com.squareup.okhttp3:okhttp:4.10.0'