Error:Could not download gradle-core.jar (com.android.tools.build:gradle-core:2.2.3): No cached version available for offline mode
I am using Android Studio 2.3. This error appears after new update.
Happened to me too. Here's what I did:
1 - Go to Settings -> Build, Execution, Deployment option -> Instant Run
2 - Uncheck Enable instant run to hot swap code
3 - Clean project
4 - Check Enable instant run to hot swap code
and build again.
Worked for me, hope it is a fix for everyone facing the same issue.
Open you android studio path, then open path:
/gradle/m2repository/com/android/tools/build/gradle-core/
Then, gradle-core-2.2.3.jar
should appear, like this:
/gradle/m2repository/com/android/tools/build/gradle-core/2.2.3/gradle-core-2.2.3.jar.
If not, you will have to download it and put it at there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.