No cached version of com.google.gms:google-services:1.x.x available for offline mode

前端 未结 7 1952
梦毁少年i
梦毁少年i 2020-12-10 01:07

Error:No cached version of com.google.gms:google-services:1.4.0-beta3 available for offline mode. Disable Gradle \'offline mode\' and sync project

I am facing this i

相关标签:
7条回答
  • 2020-12-10 01:22

    minSdkVersion can't be under 16, and it works. enter image description here

    enter image description here

    and download sdk tools google services,

    click sdk manager and then click sdk tools and ** download google play services**

    0 讨论(0)
  • 2020-12-10 01:23

    If your Offline Work is Unchecked and If you still get this Error.

    Do this:

    File => Invalidate Caches/Restart

    In my case also I had the same problem. Solved it using this.

    0 讨论(0)
  • 2020-12-10 01:24

    Disable offline mode to solve this error.

    In Android Studio Go:

    File -> Setting -> Build, Execution, Deployment -> Gradle

    Then Uncheck Ofline Work, Done.

    0 讨论(0)
  • 2020-12-10 01:25

    Disable offline mode

    • Step 1: Goto File -> Settings -> Build, Execution, Deployment -> Gradle

    • Step 2: Uncheck checkbox of Offline Work.

    • Step 3: Click the Apply and Ok button.

    • Then click File -> Sync Project with Gradle Files and Rebuild the Project.

    0 讨论(0)
  • 2020-12-10 01:28

    Update te Gradle distribution, go to the oficial site https://services.gradle.org/distributions/ find the last, in this moment gradle-5.0-all.zip and download it, unzit this and configure the grandle path in Android studio S2s

    0 讨论(0)
  • 2020-12-10 01:38

    The Offline mode does not allow you to completely work offline. Its actually a GOOD cache mode. Whenever you add new dependencies, You HAVE to gradle sync the project, ATLEAST ONCE. Android studio has to download(then cache) the dependencies for the app to work. Once you sync the gradle files, then you can switch to offline mode, and you can work.

    If you must work offline, then i would suggest determining all the dependencies you need in your application. Add them all at once and Gradle sync. Then switch to Offline mode.

    UPDATE
    If you are working behind a proxy network, then goto File-> Settings -> Under Appearence & Behavior -> Under System Settings -> HTTP Proxy -> Click on Manual proxy configuration, and add the neccessary details. Then goto your gradle.properties file which should contain sometyhing like this :

    systemProp.http.proxyPassword=your_password
    systemProp.http.proxyHost=host_Ip_address
    systemProp.http.proxyUser=your_username
    systemProp.http.proxyPort=port_number
    

    Add this to your file, along with the above :

    systemProp.https.proxyPassword=your_password
    systemProp.https.proxyHost=host_Ip_address
    systemProp.https.proxyUser=your_username
    systemProp.https.proxyPort=port_number
    

    These details can be found out from your browser's proxy settings.

    0 讨论(0)
提交回复
热议问题