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:

  1. 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

  2. resync project, example restarting android studio

  3. 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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -