Network agent problem: task: preparekotlinbuildscriptmodel up-to-date

The error code is as follows

> Task :prepareKotlinBuildScriptModel UP-TO-DATE
IOException: https://dl.google.com/android/repository/addons_list-3.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-2.xml
java.net.ConnectException: Connection refused: connect
IOException: https://dl.google.com/android/repository/addons_list-1.xml
java.net.ConnectException: Connection refused: connect
Failed to download any source lists!

The solution is to find the gradle.properties file under the. Gradle file in the user directory, open and delete the proxy configuration, IP and port with proxy (not just IP)!!!! And ports!!)

Read More: