所以直到2天前,我的代码直到昨天才出现任何问题,我花了2天的时间解决了这个问题,但没有运气
这是我的依赖项:全部已更新
dependencies {
implementation fileTree(include: '*.jar', dir: 'libs')
// SUB-PROJECT DEPENDENCIES START
implementation project(path: ':CordovaLib')
implementation 'com.android.support:customtabs:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.facebook.android:facebook-android-sdk:4.42.0'
implementation 'com.google.gms:google-services:4.2.0'
implementation 'com.google.android.gms:play-services-tagmanager:16.0.8'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.6.0'
implementation 'com.google.firebase:firebase-crash:16.2.1'
implementation 'com.google.firebase:firebase-config:16.5.0'
implementation 'com.google.firebase:firebase-perf:16.2.5'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.android.support:support-core-utils:28.0.0'
implementation 'com.google.android.gms:play-services-auth:16.0.1'
implementation 'com.google.android.gms:play-services-identity:16.0.0'
implementation 'com.stripe:stripe-android:8.7.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
// SUB-PROJECT DEPENDENCIES END
}
buildscript {
repositories {
maven { url "https://maven.google.com" }
google()
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.google.gms:google-services:4.2.0'
}
}
allprojects {
repositories {
google()
mavenCentral();
jcenter()
}
}
我收到此错误
Could not find any version that matches com.google.android.gms:strict-version-matcher-plugin:15.+.
当我运行./gradlew app:dependencies -info
com.google.gms:google-services:4.2.0
| \--- com.google.android.gms:strict-version-matcher-plugin:1.1.0 -> 15.+ FAILED
+--- com.google.android.gms:play-services-tagmanager:16.0.8 -> 15.0.2
| +--- com.google.android.gms:play-services-ads-identifier:[15.0.1,16.0.0) -> 15.0.1 (*)
| +--- com.google.android.gms:play-services-analytics-impl:[15.0.2] -> 15.0.2
当我添加
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
在我的build.gradle中,我得到了另一个错误
Dependency failing: com.google.android.gms:play-services-auth:15.0.1 -> com.google.android.gms:play-services-auth-base@[
15.0.1], but play-services-auth-base version was 15.1.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.android.gms:play-services-auth@16.0.1