androidandroid-studiogradlegradlewandroid-studio-3.5.1

After update classpath 3.5.0. to 3.5.1


Upgrade Gradle build tools to the latest version then this issue occurs. Could not resolve all artifacts for configuration ': classpath'.

Could not resolve com.android.tools.build:gradle:3.5.1. Required by: project : Could not resolve com.android.tools.build:gradle:3.5.1. Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.1/gradle-3.5.1.pom'. Could not HEAD 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.1/gradle-3.5.1.pom'. Remote host closed connection during handshake


Solution

  • Here is the possible reason,

    1) Check your internet connection, if it works then,

    2) Check that your firewall, because if some of the Google Service blocks at that time also you get an exception.

    3) Invalid cache and restart Android Studio.

    Hops this helps.