运行Cordova运行android时的依赖失败

时间:2019-05-06 18:41:50

标签: android cordova ionic-framework android-gradle

构建项目时出现此错误。

  

依赖项失败:   com.google.android.gms:play-services-tagmanager-api:15.0.2->   com.google.android.gms:play-services-measurement-base @ [15.0.2],但   play-services-measurement-base版本为15.0.4。

以下是我的应用程序和项目级别的build.gradle文件。

root build.gradle

dependencies {
    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
    classpath 'com.android.tools.build:gradle:3.4.0'
    classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase
    classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
}

应用程序build.gradle

 dependencies {
    implementation fileTree(dir: 'libs', include: '*.jar')
    // SUB-PROJECT DEPENDENCIES START
    implementation(project(path: ":CordovaLib"))
    compile "com.android.support:support-annotations:27.+"
    compile "com.google.android.gms:play-services-tagmanager:16.0.8"
    compile "com.google.firebase:firebase-core:16.0.8"
    compile "com.google.firebase:firebase-messaging:17.0.0"
    compile "com.google.firebase:firebase-config:16.5.0"
    compile "com.google.firebase:firebase-perf:16.2.5"
    compile "com.google.android.gms:play-services-auth:16.0.1"
    compile "com.google.android.gms:play-services-identity:16.0.0"
    // SUB-PROJECT DEPENDENCIES END
}

0 个答案:

没有答案