Could not download gradle-core.jar

回眸只為那壹抹淺笑 提交于 2019-12-10 13:44:33

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/40328719/could-not-download-gradle-core-jar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!