[英]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步:
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.