I have this app up and running till i suddenly getting these errors while updating few codes and rebuild:
Duplicate class com.getkeepsafe.relinker.ApkLibraryInstaller found in modules classes.jar (com.getkeepsafe.relinker:relinker:1.2.2) and classes.jar (pl.droidsonroids.relinker:relinker:1.3.1)
Duplicate class com.getkeepsafe.relinker.BuildConfig found in modules classes.jar (com.getkeepsafe.relinker:relinker:1.2.2) and classes.jar (pl.droidsonroids.relinker:relinker:1.3.1)
...
Go to the documentation to learn how to Fix dependency resolution errors.
Here is my build.gradle(app module) file looks like:
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
apply plugin: 'io.fabric'
android {
...
compileSdkVersion 28
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mrrideconfig
}
}
productFlavors {
}
repositories {
flatDir {
dirs 'libs'
}
}
}
...
dependencies {
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
implementation(name: 'walletmixopglibrary', ext: 'aar')
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
exclude group: 'com.google.code.findbugs'
})
implementation('com.mikepenz:fastadapter:2.0.0#aar') {
transitive = true
}
implementation 'com.afollestad.material-dialogs:core:0.9.0.0'
implementation 'com.mikepenz:iconics-core:2.8.1#aar'
implementation 'com.mikepenz:fontawesome-typeface:4.6.0.2#aar'
implementation('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
androidTestImplementation 'junit:junit:4.12'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-vector-drawable:28.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.google.guava:guava:24.1-jre'
implementation 'com.dmitrymalkovich.android:material-design-dimens:1.4'
implementation 'com.ogaclejapan.smarttablayout:library:1.6.1#aar'
implementation 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1#aar'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'me.relex:circleindicator:1.2.2#aar'
implementation 'com.squareup.okhttp3:okhttp:3.14.1'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.0'
implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.google.firebase:firebase-messaging:17.6.0'
implementation 'com.google.firebase:firebase-auth:16.2.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
//implementation 'com.google.android.gms:play-services:12.0.1'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-places:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-nearby:16.0.0'
implementation 'org.greenrobot:eventbus:3.1.0'
implementation 'com.makeramen:roundedimageview:2.2.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.siyamed:android-shape-imageview:0.9.3'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.mcxiaoke.volley:library:1.0.19'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
}
apply plugin: 'com.google.gms.google-services'
and build.gradle(project module) file:
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'io.realm:realm-gradle-plugin:4.2.0'
classpath 'io.fabric.tools:gradle:1.28.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
// maven {
// url 'https://maven.google.com/'
// name 'Google'
// }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
My Android Studio version is 3.4.1 and sdk is up to date. I searched for a solution but coudn't find one. Those librarys in the error messeage isn't even in my dependency list. How can i resolve these problem?
Use
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15'
instead of latest version or
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
its relinker class is conflicting with realm library. This is the only way I know for now.
Since pl.droidsonroids.gif update to 1.2.17 relinker conflict with com getkeepsafe.relinker...
I had a similar problem I solved it by changing
api 'pl.droidsonroids.gif:android-gif-drawable:1.2.+'
to
api 'pl.droidsonroids.gif:android-gif-drawable:1.2.1'
Related
I'm trying to migrate to new sdk client inside an application.
When I tried to introduce the implementation inside my build.gradle the application throws an exception. What can I do to solve it?
What I have tried:
I have included inside build.gradle the following implementation
implementation 'com.google.android.libraries.places:places-compat:1.1.0'
also I have tried with
implementation 'com.google.android.libraries.places:places:1.1.0'
both of them throws the following error
Unable to resolve dependency for project : Could not resolve com.android.volley:volley:1.1.1.
Is anything I can do to make it compatible?
What are the changes I need to do?
Here is my build.gradle dependencies
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/volley.jar')
implementation('de.keyboardsurfer.android.widget:crouton:1.8.1') {
exclude group: 'com.google.android', module: 'support-v4'
implementation 'com.google.maps.android:android-maps-utils:0.3+'
}
annotationProcessor 'org.parceler:parceler:1.1.1'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-analytics:16.0.7'
implementation 'com.google.android.libraries.places:places-compat:1.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.code.gson:gson:2.7'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.squareup:otto:1.3.5'
implementation 'com.squareup.picasso:picasso:2.3.2'
annotationProcessor 'io.realm:realm-android:0.82.0-SNAPSHOT'
implementation 'io.realm:realm-android:0.82.0-SNAPSHOT'
implementation 'com.android.support:multidex:1.0.1'
implementation 'org.parceler:parceler-api:1.1.1'
implementation 'org.apache.amber:amber-oauth2-client:0.22-incubating'
implementation 'org.apache.amber:amber-oauth2-common:0.22-incubating'
implementation 'org.slf4j:slf4j-api:1.7.12'
}
project build.gradle
buildscript {
repositories {
mavenCentral()
maven {
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
allprojects {
repositories {
mavenCentral()
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
}
Please verify if you have this repository added in your app level gradle file
allprojects {
repositories {
jcenter()
}
}
Also change this line
implementation files('libs/volley.jar')
to
implementation 'com.android.volley:volley:1.1.0'
As you are facing issue Program type already present: com.android.volley.AuthFailureError
Add this in your app dir build.gradle
android{
configurations {
all*.exclude group: 'com.android.volley'
}}
I am trying to upgrade dependencies from v:7:26.+ to v:7.28.0.0, sync is okay, but Multiple dex error is thrown when I try to run the app, i am not sure what it is complaining, tried to update the multidex dependency from 1.0.1 to 1.0.3 as well but doesn't help. Please help!
Error: Multiple dex files define
Lcom/google/common/util/concurrent/ListenableFuture;
My App Gradle
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.myapp.findme"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '28.0.3'
// Temporary fix until alpha10
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
//implementation 'com.google.android.material:material:1.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
//implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
//implementation 'com.android.support:design:26.+'
//implementation 'com.android.support:cardview-v7:26.+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
/**
* https://github.com/JakeWharton/butterknife
* Avoid findViewById calls by using #BindView on field
* note: cannot go to 10.10.0, require min sdk 26
*/
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
//implementation 'com.android.support:multidex:1.0.1'
implementation 'com.android.support:multidex:1.0.3'
// for firebase and firestore
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-firestore:17.0.4'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-messaging:17.3.0'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
// for LinkedIn
compile project(path: ':linkedin-sdk')
// for facebook
implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.code.gson:gson:2.8.2'
// for BLE
//implementation 'org.altbeacon:android-beacon-library:2.15+'
//implementation 'org.altbeacon:android-beacon-library:2.15.2'
compile(name: 'android-beacon-library-more-reliable-service-stop2-1-g7dbb6b3', ext: 'aar')
// life cycle
implementation 'android.arch.lifecycle:extensions:1.0.0'
annotationProcessor "android.arch.lifecycle:compiler:1.0.0"
// *** Jetpack ***
//
// Release note https://developer.android.com/jetpack/docs/release-notes
// for ROOM
implementation 'com.amitshekhar.android:debug-db:1.0.4'
def room_version = "1.1.1"
implementation "android.arch.persistence.room:runtime:$room_version"
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
// for work manager
def work_version = "1.0.0-alpha09"
implementation "android.arch.work:work-runtime:$work_version"
// *** End of JackPack ***
// for google play service (location)
implementation 'com.google.android.gms:play-services-location:15.0.1'
// for google login
implementation 'com.google.android.gms:play-services-auth:15.0.1'
// for fire storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
// for image
//implementation 'com.android.support:exifinterface:27.1.1'
implementation 'com.android.support:exifinterface:28+'
// for crashlytics
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
// for bugfender
implementation 'com.bugfender.sdk:android:1.+'
// userful method
implementation 'org.apache.commons:commons-lang3:3.4'
}
apply plugin: 'com.google.gms.google-services'
My project gradle
buildscript {
repositories {
google()
jcenter()
maven {
url "https://maven.google.com"
}
maven {
// for crashlytics
url 'https://maven.fabric.io/public'
}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
//classpath 'com.google.gms:google-services:3.1.0'
classpath 'com.google.gms:google-services:4.0.1' // google-services plugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// for crashlytics
classpath 'io.fabric.tools:gradle:1.25.4'
}
}
allprojects {
repositories {
google()
jcenter()
// for crashlytics
maven {
url 'https://maven.google.com/'
}
flatDir {
dirs 'src/main/libs'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Solution: Excluding Guava group with listenablefuture module from current transitive dependency
implementation("android.arch.work:work-runtime:1.0.0-alpha09") {
exclude group: 'com.google.guava', module: 'listenablefuture'
}
Also, use this configuration for linkedin-sdk:
api project(path: ':linkedin-sdk') {
transitive = true
}
Reason:
As per Google Issue Tracker,
It is surprisingly done on purpose! (reference) Yet new release of Guava will be available soon, with of course resolve issue. For now, excluding as stated above should work perfectly.
I developed an Android application on Android Studio 3.2.1 and I imported aar module to read UAE Id cards, I can run the application on my device without any problem.
I tried to generate an APK (debug/signed) file for my application but I get this error:
Program type already present: com.acs.smartcard.BufferOverflowException
where com.acs.smartcard is the module package name.
My app build.gradle file:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "biz.wasel.driver"
minSdkVersion 17
targetSdkVersion 28
versionCode 3
versionName "1.0.4"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:support-annotations:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.firebase:firebase-database:16.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.2'
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'com.android.volley:volley:1.1.0'
implementation 'com.google.code.gson:gson:2.8.4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'com.android.support:design:28.0.0'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3'
implementation 'me.philio:pinentryview:1.0.6'
implementation 'com.poovam:pin-edittext-field:1.0.3'
implementation 'com.android.support:support-compat:28.0.0'
implementation 'com.daimajia.easing:library:2.0#aar'
implementation 'com.daimajia.androidanimations:library:2.3#aar'
implementation 'com.aurelhubert:ahbottomnavigation:2.1.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.ramotion.cardslider:card-slider:0.2.0'
implementation 'com.android.support:preference-v7:28.0.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.yarolegovich:discrete-scrollview:1.4.7'
implementation 'net.gotev:uploadservice:3.4.2'
implementation 'com.github.esafirm.android-image-picker:imagepicker:1.13.1'
implementation 'android.arch.paging:runtime:1.0.0'
implementation 'com.github.ome450901:SimpleRatingBar:1.4.2'
implementation('com.crashlytics.sdk.android:crashlytics:2.9.4#aar') {
transitive = true;
}
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'com.github.gmazzo:nestedscroll-maps:0.4'
implementation 'com.hanks.animatecheckbox:library:0.1'
implementation 'com.sothree.slidinguppanel:library:3.4.0'
implementation 'com.hbb20:ccp:2.1.2'
implementation 'com.github.Binary-Finery:Bungee:master-SNAPSHOT'
implementation 'com.github.gcacace:signature-pad:1.2.1'
implementation 'com.facebook.shimmer:shimmer:0.1.0#aar'
implementation project(':acs-plugin-release')
implementation project(':EIDAToolkit')
}
apply plugin: 'com.google.gms.google-services'
and my project level build.gradle is
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'http://maven.microblink.com' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Note:
When I commented
implementation project(':acs-plugin-release')
form app build.gradle I can generate APK without any problem, but I need this module to finish the app.
I tried a lot of solutions from here and here, but they didn't work!
Any help, please ?!
Thank you
I use firebase database, storage, auth and google cloud vision.
I got this error
Multiple dex files define Lcom/google/common/reflect/Types$WildcardTypeImpl;
I think that this project gradle conflicts
this is my gradle(Module:app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "*************************"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
buildTypes.each {
it.buildConfigField 'String', 'API_KEY', '"**********************"'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
implementation 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
implementation 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'
implementation 'com.google.apis:google-api-services-vision:v1-rev369-1.23.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:appcompat-v7:27.1.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:animated-vector-drawable:27.1.1'
implementation 'com.android.support:support-media-compat:27.1.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.firebaseui:firebase-ui-storage:3.2.2'
implementation 'com.jaredrummler:colorpicker:1.0.1'
implementation 'com.android.support:multidex:1.0.3'
//firebase 구글 로그인 원래 16.0.2
implementation 'com.google.android.gms:play-services-auth:16.0.0'
// ++++++++ 2018.11.08 ++++++++
implementation 'com.android.support:design:27.1.1'
implementation 'com.firebaseui:firebase-ui-database:0.6.2'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'org.parceler:parceler-api:1.1.11'
annotationProcessor 'org.parceler:parceler:1.1.11'
//////////
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.firebase:firebase-firestore:17.1.1'
implementation 'com.google.firebase:firebase-storage:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.google.firebase:firebase-config:16.0.1'
implementation 'com.google.firebase:firebase-invites:16.0.4'
implementation 'com.google.firebase:firebase-ads:16.0.1'
implementation 'com.google.firebase:firebase-appindexing:16.0.2'
implementation 'com.google.firebase:firebase-perf:16.1.2'
implementation 'com.google.firebase:firebase-functions:16.1.1'
implementation 'com.google.firebase:firebase-ml-vision:17.0.1'
implementation 'com.google.firebase:firebase-ml-model-interpreter:16.2.2'
}
apply plugin: 'com.google.gms.google-services'
this is my gradle(Project)
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
// classpath 'com.android.tools.build:gradle:2.2.3'
// classpath 'com.google.gms:google-services:3.1.0'
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
What can I do? ;(
I think gradle has some problems, but I dont' know what to do.
I put almost all codes found from googling
Help me :(
FirebaseUI has transistive dependencies on Firebase and Google Play libraries. It's important to specify a compatible set of libraries in your build.
You are using the most recent versions of the Firebase libraries, but very old versions of FirbaseUI. As a first step, make these changes to use a compatible version of FirebaseUI:
implementation 'com.firebaseui:firebase-ui-storage:4.2.1'
...
implementation 'com.firebaseui:firebase-ui-database:4.2.1'
This is my build gradle (App)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.+'
implementation 'com.android.support:support-v4:26.+'
implementation 'com.github.bumptech.glide:glide:3.8.0'
implementation 'com.android.support:recyclerview-v7:26.+'
testImplementation 'junit:junit:4.12'
implementation 'com.google.firebase:firebase-auth:9.0.2'
implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'
}
In the build gradle (Project)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.google.gms:google-services:4.0.2'
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://maven.google.com" }
}
}
Here is the error
Failed to resolve: firebase-messaging-15.0.0
The Firebase assistant show that Dependencies set up correctly, but Sycn fail. Please help me.
Try changing the version of firebase messaging to 17.3.2 like
implementation 'com.google.firebase:firebase-messaging:17.3.2'
Change this:
implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'
into this:
implementation 'com.google.firebase:firebase-messaging:17.3.2'
com.google.firebase is the group id
firebase-messaging is the artifact id
17.3.2 is the version
Check the versions here:
https://firebase.google.com/support/release-notes/android
Either use implementation 'com.google.firebase:firebase-messaging:17.0.0' or implementation 'com.google.firebase:firebase-messaging:15.0.0'
Following the documentation of firebase you can downloading with
implementation 'com.google.firebase:firebase-messaging:17.3.0'
Remove
implementation 'com.google.firebase:firebase-messaging:17.0.0:15.0.0'
add
implementation 'com.google.firebase:firebase-database:17.0.0'