No cached version of com.android.tools.build:gradle:0.9.1 available for offline mode -
i got error message while building new hello world project in android studio.
failure: build failed exception.
what went wrong: problem occurred configuring root project
myapplication2
.could not resolve dependencies configuration ':classpath'. not resolve com.android.tools.build:gradle:0.9.1. required by: :myapplication2:unspecified no cached version of com.android.tools.build:gradle:0.9.1 available offline mode.
build failed
android studio version : 0.5.2 gradle version : 0.9.1
i'm using proxy connection internet.
please can give solution problem. have searched internet above problem, couldn't proper solution issue.
had same error after updating android studio today. me, wasn't matter of proxy settings:
uncheck "offline work" in android studio 0.6.0:
file->settings->gradle->global gradle settings
or in osx:
preferences->gradle->global gradle setting
or in more recent versions:
file->settings->build, execution, deployment->build tools->gradle
resync project, example restarting android studio
- once synced, can check option again work offline.
(only tested in gradle version 0.11... , android studio version 0.6.0 preview)
edit : added paths different versions/platforms (as mentioned john ballinger , the_martian). not yet verified.
Comments
Post a Comment