Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Android build error version incompatibility on com.google.android.gms #295

Closed
duro opened this issue May 24, 2018 · 3 comments
Closed

Android build error version incompatibility on com.google.android.gms #295

duro opened this issue May 24, 2018 · 3 comments

Comments

@duro
Copy link

duro commented May 24, 2018

I have been trying to navigate through build errors on Android, which I assume are caused by another one of my dependencies wanting version 15.0.1 of the GMS package.

With no changes to what react-native link creates, I get this error:

Android dependency 'com.google.android.gms:play-services-maps' has different version for the compile (11.8.0) and runtime (15.0.1) classpath. You should manually set the same version via DependencyResolution

I have tried to force tipsi-stripe to use 15.0.1 for its play-services-wallet dependency with this:

compile (project(':tipsi-stripe')) {
    configurations.all {
        resolutionStrategy {
            force 'com.google.android.gms:play-services-wallet:15.0.1'
        }
    }
}

But then I get this error:

> Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
D8: Program type already present: android.support.design.widget.CoordinatorLayout$Behavior

Any idea where I go from here? I'm totally unable to get this to build.

@82rules
Copy link

82rules commented Jun 4, 2018

Any follow up on this issue I've run into the same incompatibility.

@phuchuynhStrong
Copy link

Firstly, upgrade your appcompat and design to your compileSdkVersion. Then add exclude group: "com.android.support" when add implementation project tipsi-stripe

@tipsi tipsi deleted a comment from theonetheycallneo Aug 27, 2018
@isnifer
Copy link
Contributor

isnifer commented Aug 27, 2018

@duro we have merged in 5.5.0 this PR #350. See it

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants