0

I had updated my android studio to version 3.0 and when I tried to build an existing code which works fine in previous version of android studio shows below error.

Error:Could not download compiler.jar (com.android.databinding:compiler:2.3.0): No cached version available for offline mode

My grade version is

classpath 'com.android.tools.build:gradle:2.3.0'

Please help me...

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
Sonia John Kavery
  • 2,099
  • 2
  • 20
  • 36

3 Answers3

2

Disable Offline Mode.

Go to File > Settings > type gradle in search > select Gradle under Build Tools > uncheck Offline work

Also, make sure that your internet connection is working properly.

Akshar Patel
  • 8,998
  • 6
  • 35
  • 50
1

It really seems that you are offline, theres a option on the settings tab for supporting offline mode, it's probably checked, uncheck the box and try again

Carlos Mion
  • 37
  • 1
  • 8
0

i also had the same issue solved by using

  buildscript {
   repositories {
    ...
       // You need to add the following repository to download the
    // new plugin.
    google()
  }

   dependencies {
    classpath 'com.android.tools.build:gradle:3.0.0'
  }
 }

and then goto Build>cleanproject then all worked fine in my side for more info check https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#update_gradle

Hemanth Kumar
  • 257
  • 3
  • 12