ОШИБКА: Пожалуйста, исправьте конфликт версий, обновив версию плагина google-services? - PullRequest
0 голосов
/ 07 января 2020

Я использую ioni c, чтобы создать приложение android, и когда я хочу запустить свой проект с конденсатором. Хорошо работает с Cordova, но не может работать с конденсатором. Вот мои зависимости Gradle:

    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 и tagetSDKversion равны 28

...