镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Android] Don't hard set play services version #134

Closed

Description

@Ehesp

Hello,

Bear in mind, I'm not to clued up to Android yet...

I keep running into the same issue whereby my build fails due to "Multiple dex files". The cause of this is conflicting play-services versions across multiple libs. This library hard sets the dep to 9.8.0.

Other libs seem to only set it to "whatever is latest", e.g: https://github.com/zo0r/react-native-push-notification/blob/master/android/build.gradle#L44 & https://github.com/idehub/react-native-google-analytics-bridge/blob/master/android/build.gradle#L21

The only way I can fix these errors is by either:

  1. Adding this to my own build.gradle:
dependencies {
    compile ('com.google.android.gms:play-services-gcm:9.8.0') {
      force = true;
    }
    ...
  1. Going into node_modules, and changing the line to compile 'com.google.android.gms:play-services-base:+'.

Didn't want to make a PR since I'm not sure if this will have any repercussions?

Activity

  1. auser commented on Nov 15, 2016

    @auser
    Contributor

    That should be fine. Make a PR when you get a chance. I think that sounds like a great idea.

    @Ehesp ^^

  2. auser commented on Nov 16, 2016

    @auser
    Contributor

    Actually, what do you think about doing this for all Firestack dependencies?

  3. Ehesp commented on Nov 16, 2016

    @Ehesp
    ContributorAuthor

    I supposed the only issue is if the lib isn't kept up to date with say the latest firebase SDK, then users are going to have weird issues.

  4. auser commented on Nov 17, 2016

    @auser
    Contributor

    Good point. I agree.

  5. Salakar commented on Nov 19, 2016

    @Salakar
    Collaborator

    Closing as fixed on v3 branch.

  6. added a commit that references this issue on Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions