Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building app for Android #43

Closed
luccascorrea opened this issue May 29, 2018 · 1 comment
Closed

Error when building app for Android #43

luccascorrea opened this issue May 29, 2018 · 1 comment

Comments

@luccascorrea
Copy link

luccascorrea commented May 29, 2018

When I try to run the app, I get the following messages:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.google.android.gms:play-services-base' has different version for the compile (11.8.0) and runtime (15.0.1) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Finished with error: Gradle build failed: 1

I saw here that, in order to fix this, all you have to do is change the GMS dependency from "implementation" to "api" in the library's build.gradle file.

I did it and it worked. I am just posting this issue to let you guys know so that someone can fix it. Thanks.

@Lyokone
Copy link
Owner

Lyokone commented May 30, 2018

Hi,
I've changed it, hope it will solve this problem for good 👍 Thank you

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

No branches or pull requests

2 participants