Я пробую синхронизировать книжные магазины 'com.google.firebase:firebase-core:16.0.4'
и 'com.google.firebase:firebase-database:16.0.4'
в Gradle
но меня отпускает ошибка этих книжных магазинов они не соответствуют остальным.
Эти книжные магазины Firebase
это последняя версия и я использую 'com.android.support:appcompat-v7:28.0.0'
с Android Studio 3.2
. Я попробовал менять verión com.android.support:appcompat-v7
но продолжает появляться ошибка.
Ошибка: All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes).
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.juancortesgarcia.myapplication"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
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'
}
apply plugin: 'com.google.gms.google-services'
Книжный магазин, который дает ошибку, 'com.android.support:appcompat-v7:28.0.0'
Парни, у меня есть та же проблема что compaГ±ero, но июль 2019, не, если конфигурация, данная из-за compaГ±ero уже estarГЎ устаревшая из-за smeses, которые произошли. Это мой код:
apply plugin: 'com.android.application'
android {
buildToolsVersion "29.0.0"
defaultConfig {
compileSdkVersion 27
targetSdkVersion 27
applicationId "com.livecity.livecity.livecitycliente"
minSdkVersion 15
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//compile 'com.theartofdev.edmodo:android-image-cropper:2.8.+' //cortar la imagen con cropper
//compile 'com.github.yalantia:uceop:2.3.3-native' //cortar la imagen con ucrop
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-auth:16.0.4'
implementation 'com.google.firebase:firebase-storage:16.0.4'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
implementation "androidx.appcompat:appcompat:1.0.0"
implementation "androidx.exifinterface:exifinterface:1.0.0"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.+'
}
apply plugin: 'com.google.gms.google-services'