错误:请通过更新google-services插件的版本来解决版本冲突?

时间:2020-01-07 06:06:29

标签: android android-studio ionic4 capacitor

当使用电容器运行项目时,我使用ionic来制作android应用程序。使用Cordova可以很好地运行,但是不能使用电容器。 这是我的Gradle依赖项:

MainPage

当我想运行我的项目时,出现此错误:

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-compat:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'com.google.firebase:firebase-messaging:20.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'org.apache.cordova:framework:7.0.0'
    implementation fileTree(dir: 'src/main/libs', include: ['*.jar'])
    implementation 'org.apache.cordova:framework:7.0.0'
    implementation "com.squareup.okhttp3:okhttp-urlconnection:3.10.0"
    implementation "com.soundcloud.android:android-crop:1.0.0@aar"
    implementation "com.google.firebase:firebase-core:17.2.1"
    implementation "com.google.android.gms:play-services-maps:17.0.0"
    implementation "com.google.android.gms:play-services-location:17.0.0"
    implementation "com.android.support:support-core-utils:28.0.0"
    implementation "com.google.android.gms:play-services-auth:17.0.0"
    implementation "com.google.android.gms:play-services-identity:17.0.0"
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation project(':capacitor-android')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation project(':capacitor-cordova-android-plugins')
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.android.support:support-v4:28.0.0'

我的ERROR: Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 10.+. compileSDKversion是28

0 个答案:

没有答案