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 on android build #4

Open
hakankozakli opened this issue Oct 16, 2020 · 0 comments
Open

Error on android build #4

hakankozakli opened this issue Oct 16, 2020 · 0 comments

Comments

@hakankozakli
Copy link

hakankozakli commented Oct 16, 2020

First of all, Great work! Thanks a lot.

When I try to build for android I am getting this error:

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> The library com.google.android.gms:play-services-vision-common is being requested by various other libraries at [[19.1.0,19.1.0], [19.0.2,19.0.2]], but resolves to 19.1.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

Then I try to bypass it with
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
but then it throws this error:

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.google.android.gms.internal.vision.zze found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzf found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzg found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzh found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzi found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzv found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)
  Duplicate class com.google.android.gms.internal.vision.zzw found in modules classes.jar (com.google.android.gms:play-services-vision-common:19.1.0) and classes.jar (com.google.android.gms:play-services-vision:20.0.0)

Can you please help how I can fix this?

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

1 participant