Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not download gradle-core.jar

My Android Studio cannot import gradle-core.jar.

The error message contained in the article,

Error: Could not download gradle-core.jar 
(com.android.tools.build:gradle-core:2.1.2): 
No cached version available for offline mode, 

My android version is 2.2.2 and I use AMD processors, it makes me not able to install intel HAXM.

Anyone have a solution?

like image 813
Ilyas Sayunus Avatar asked Oct 30 '16 11:10

Ilyas Sayunus


People also ask

How to install gradle in cmd?

To download Gradle zip file on /temp directory, run the following command: $ wget https://services.gradle.org/distributions/gradle-6.0.1-bin.zip -P /temp. The wget command will download the Gradle version 6.0.

How to Setup gradle in Windows 10?

Microsoft Windows users In File Explorer right-click on the This PC (or Computer ) icon, then click Properties -> Advanced System Settings -> Environmental Variables . Under System Variables select Path , then click Edit . Add an entry for C:\Gradle\gradle-7.5.1\bin . Click OK to save.


1 Answers

I recently faced the same issue. Do the following:

  1. Go to Android Studio Settings -> Build Tools -> Gradle In project-level settings set "Use default gradle wrapper" on. Set the offline work named checkbox unchecked. and aapply changes.
  2. Try to sync gradle. It will download the needed gradle-core.jar
like image 66
Ashikee AbHi Avatar answered Sep 22 '22 10:09

Ashikee AbHi