简体   繁体   English

“com.google.gms:google-services:3.0.0”的缓存版本不适用于离线模式Android studio 1.5.1

[英]No cached version for “com.google.gms:google-services:3.0.0” available for offline mode Android studio 1.5.1

I am trying to use Firebase, and am using Android Studio version 1.5.1 but if I try to sync my project after adding classpath 'com.google.gms:google-services:3.0.0' and the plugin at the bottom apply plugin: 'com.google.gms.google-services' of the App-level build.gradle . 我正在尝试使用Firebase,并且正在使用Android Studio版本1.5.1但是如果我在添加classpath 'com.google.gms:google-services:3.0.0'后尝试同步我的项目,并且底部的apply plugin: 'com.google.gms.google-services' App-level build.gradle的apply plugin: 'com.google.gms.google-services'

The error still remains the same No cached version fof "com.google.gms:google-services:3.0.0" available for offline mode 错误仍然保持不变No cached version fof "com.google.gms:google-services:3.0.0" available for offline mode

I have tried to read existing answers on Stack Overflow, but it doesn't work for me. 我试图阅读Stack Overflow上的现有答案,但它对我不起作用。

I am also facing this issue. 我也面临这个问题。 After spend 2-3 hours i find the solution. 花了2-3个小时后,我找到了解决方案。 (which works for me) (对我有用)

Step 1: 第1步:

Disable offline mode 禁用离线模式

Step 2: 第2步:

Go to gradle-wrapper-properties 转到gradle-wrapper-properties

Replace this line 替换此行

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

with

distributionUrl=http\://services.gradle.org/distributions/gradle-4.6-all.zip

Remove secure connection. 删除安全连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有缓存版本的 com.google.gms:google-services:1.xx 可用于离线模式 - No cached version of com.google.gms:google-services:1.x.x available for offline mode 无法解析 com.google.gms:google-services:3.0.0 - Could not resolve com.google.gms:google-services:3.0.0 Gradle 同步失败:找不到 com.google.gms:google-services:3.0.0 - Gradle sync failed: Could not find com.google.gms:google-services:3.0.0 更新到 com.google.gms:google-services:3.0.0 后出现 gradle 异常 - Getting gradle exception after updating to com.google.gms:google-services:3.0.0 错误:将Firebase导入代码示例时,找不到com.google.gms:google-services:3.0.0 - Error:Could not find com.google.gms:google-services:3.0.0 when importing Firebase to a code sample 如何修复错误:找不到 com.google.gms: google-services: 3.0.0.? - How to fix Error:Could not find com.google.gms: google-services: 3.0.0.? 错误:找不到com.google.gms:google-services:3.0.0 - Error:Could not find com.google.gms:google-services:3.0.0 找不到 arguments [com.google.gms:google-services:3.0.0] 的方法 classpath() - Could not find method classpath() for arguments [com.google.gms:google-services:3.0.0] 无法解析 com.google.gms:google-services:4.3.3 - Could not resolve com.google.gms:google-services:4.3.3 使用 com.google.gms 时出错:google-services: 4.3.4 - Error using com.google.gms: google-services: 4.3.4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM