I don't know if you imported the package, you can check the external libraries for okhttp3, you can also try to clean up Gradle cache and re-sync, I think the biggest problem is probably version incompatibility