I have problem related android studio.I updated android studio to 2.1.2.Now when i open previous project in android studio i have error that project refresh failed.
Error:Could not download gradle-core.jar (com.android.tools.build:gradle-core:1.1.0): No cached version available for offline mode
You should turn off Offline Mode by doing the following:
- Press
Command
+ Shift
(or Ctrl
+ Shift
if you're on Windows) simultaneously to bring up Android Studio's Action Navigation.
- Type in
offline work
.
- Click on one of the search results that says "Offline work".
- You should see the Preferences window be brought up and highlighted at the "Offline work" check box.
- Uncheck the check box.
- Rebuild your project.
The rebuilding process might take a while since Android Studio will now download a copy of Gradle to your local machine. Rest assured this would only happen once.
After the build completed, it is possible to turn Offline Mode back on again.
p.s., Obviously, you will have to be connected to the internet before following those steps above.