8000 Conflicting with Firebase · Issue #7 · Ubudu/Android-SDK · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Conflicting with Firebase #7
Open
@rafakob

Description

@rafakob

Hello!
I'm using Firebase in my application and it seems that it is conflicting with the UbuduSDK dependency. Here's my Gradle (clean project):

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:26.1.0'
    
    implementation 'com.google.firebase:firebase-messaging:11.4.2'

    implementation('com.ubudu.sdk:ubudu-sdk:2.7.3@aar') { transitive = true }
}

If you try to compile this you will receive an error:

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

And Android Studio will pup up a warning next to the Firebase dependency:
All gms/firebaselibraries must use the same version specification

The problem is that UbuduSDK uses GMS version 10.2.1 and Firebase version 11.4.2.

So in order to make thing work add explicitly those dependencies which are used by Ubudu in newer version:

implementation 'com.google.android.gms:play-services-base:11.4.2'
implementation 'com.google.android.gms:play-services-location:11.4.2'

and the conflict will be resolved.

Please update your Wiki!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0