'Gradle Issue in Android Studio

Extracted the android package from ionic project, opened it in Android Studio,

Distribution URL : https\://services.gradle.org/distributions/gradle-7.4-all.zip

Inside Project level build.gradle : classpath 'com.android.tools.build:gradle:7.4'

Inside cash.properties : gradle.version=7.4

Getting below error in Android Studio :

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'android'.

Could not resolve all artifacts for configuration ':classpath'. Could not find com.android.tools.build:gradle:7.4. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4/gradle-7.4.pom - https://jcenter.bintray.com/com/android/tools/build/gradle/7.4/gradle-7.4.pom Required by: project :

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 746ms

What might be the Issue ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source