找不到与com.google.android.gms:play-services-base:[15.0.1,16.0.0)匹配的任何版本 [英] Could not find any version that matches com.google.android.gms:play-services-base:[15.0.1,16.0.0)
问题描述
我正在为我的android应用程序使用firebase,当我尝试运行该应用程序时突然出现错误.星期六工作顺利.我不知道此错误是如何发生的以及如何解决.请帮我.
I am using firebase for my android app and suddenly I am getting an error when I tried to run the app. Saturday it was working perfectly. I don't know how this error occurred and how to solve this. Please help me.
build.gradle中的依赖项
dependencies in my build.gradle
dependencies {
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:cardview-v7:23.4.0'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.google.code.gson:gson:2.8.4'
compile 'com.android.support:multidex:1.0.3'
compile 'com.microsoft.azure:azure-mobile-android:3.1.0'
compile 'com.mixpanel.android:mixpanel-android:4.8.0'
compile 'com.firebase:firebase-client-android:2.4.0'
compile 'com.google.firebase:firebase-core:16.0.0'
compile 'com.google.firebase:firebase-auth:16.0.1'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.j256.ormlite:ormlite-android:4.48'
compile 'com.j256.ormlite:ormlite-core:4.48'
compile 'com.android.support:recyclerview-v7:23.4.0'
compile 'com.github.tibolte:elasticdownload:1.0.+'
compile 'me.dm7.barcodescanner:zxing:1.8.4'
compile 'com.google.android.gms:play-services-vision:15.0.2'
compile 'com.android.support.constraint:constraint-layout:1.1.1'
compile 'com.github.amlcurran.showcaseview:library:5.4.3'
compile 'com.wang.avi:library:2.1.3'
testCompile 'junit:junit:4.12'
androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.6.0'
androidTestCompile 'com.android.support.test:rules:1.0.2'
}
apply plugin: 'com.google.gms.google-services'
在我的项目级别build.gradle:
In my project level build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.google.gms:google-services:4.0.0'
}
我遇到的错误:
找不到与com.google.android.gms:play-services-base:[15.0.1,16.0.0)匹配的任何版本.
Could not find any version that matches com.google.android.gms:play-services-base:[15.0.1,16.0.0).
推荐答案
请确保在项目级build.gradle中拥有google()
存储库,然后再进行其他操作:
Make sure you have google()
repository in project-level build.gradle before any others:
allprojects {
repositories {
google()
mavenLocal()
jcenter()
}
}
这篇关于找不到与com.google.android.gms:play-services-base:[15.0.1,16.0.0)匹配的任何版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!