Execution failed for task ':app:checkDebugDuplicateClasses

Hello, I’m using UE 4.25.3 and when i package my project for android, this error shows up:

FAILURE: Build failed with an exception.

  • 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.zzat found in modules play-services-basement-11.8.0-runtime.jar (com.google.android.gms:play-services-basement:11.8.0) and play-services-gass-11.0.4-runtime.jar (com.google.android.gms:play-services-gass:11.0.4)

But when i opened a new project, setup the project settings and packaged it, there was no error. I can’t figure out what’s wrong with my current project.