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

Eas build :app:checkReleaseDuplicateClasses #1489

Closed
Nick-Anikin-dev opened this issue Oct 27, 2022 · 2 comments
Closed

Eas build :app:checkReleaseDuplicateClasses #1489

Nick-Anikin-dev opened this issue Oct 27, 2022 · 2 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@Nick-Anikin-dev
Copy link

Nick-Anikin-dev commented Oct 27, 2022

Summary

I tried to run eas build on android. If I use stanalone build everything works correct. All of pipelines complete successfully and everything crashed on Run gradlew.

Environment

expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.22000
Binaries:
Node: 16.17.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.19.2 - ~\node_modules.bin\npm.CMD
SDKs:
Android SDK:
API Levels: 26, 27, 28, 29, 30, 31, 32, 33
Build Tools: 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 31.0.0, 33.0.0
System Images: android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
IDEs:
Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8309675
npmPackages:
expo: ^45.0.6 => 45.0.6
react: 17.0.2 => 17.0.2
react-dom: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2
react-native-web: 0.17.7 => 0.17.7
Expo Workflow: managed

Please specify your device/emulator/simulator platform, model and version

Andoid 11, API 30

My dependcies:
"dependencies": {
"@expo-google-fonts/amatic-sc": "^0.2.2",
"@expo-google-fonts/roboto": "^0.2.2",
"@react-native-async-storage/async-storage": "~1.17.3",
"@react-native-community/cli-server-api": "^9.0.0",
"@react-navigation/drawer": "^6.3.1",
"base-64": "^1.0.0",
"expo": "^45.0.6",
"expo-app-loading": "~2.0.0",
"expo-dev-client": "~1.0.1",
"expo-network": "~4.2.0",
"expo-notifications": "~0.15.4",
"expo-radio-button": "^1.0.8",
"expo-splash-screen": "~0.15.1",
"expo-status-bar": "~1.3.0",
"expo-updates": "~0.13.4",
"moment": "^2.29.4",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-device-country": "^1.0.2",
"react-native-expo-viewport-units": "^0.0.8",
"react-native-gesture-handler": "~2.2.1",
"react-native-google-pay": "^2.1.0",
"react-native-intersection-observer": "^0.0.8",
"react-native-reanimated": "~2.8.0",
"react-native-safe-area-context": "4.2.4",
"react-native-select-input-ios": "^2.0.5",
"react-native-share": "^7.6.1",
"react-native-web": "0.17.7",
"react-native-webview": "11.18.1",
"react-redux": "^7.2.6",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@react-navigation/native": "^6.0.8",
"@types/base-64": "^1.0.0",
"@types/jest": "^27.4.1",
"@types/react": "~17.0.21",
"@types/react-native": "~0.64.12",
"@types/react-redux": "^7.1.23",
"jest": "^27.5.1",
"ts-node": "^10.7.0",
"typescript": "~4.3.5"
}

Error output

Task :app:mergeReleaseResources
Task :app:bundleReleaseResources
Task :app:compileReleaseAidl NO-SOURCE
Task :app:generateReleaseBuildConfig
Task :app:javaPreCompileRelease
Task :app:checkReleaseDuplicateClasses FAILED
Task :app:checkReleaseAarMetadata
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 6 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
568 actionable tasks: 568 executed
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:checkReleaseDuplicateClasses'.
[stderr] > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
[stderr] > Duplicate class com.google.android.gms.common.api.internal.zza found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.api.internal.zzb found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.api.internal.zzc found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.api.internal.zzd found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.api.zza found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.api.zzb found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzb found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzc found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzd found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzf found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzg found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzk found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzl found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzm found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.internal.zzn found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr] Duplicate class com.google.android.gms.common.zza found in modules jetified-play-services-base-15.0.1-runtime (com.google.android.gms:play-services-base:15.0.1) and jetified-play-services-basement-17.0.0-runtime (com.google.android.gms:play-services-basement:17.0.0)
[stderr]
[stderr] Go to the documentation to learn how to Fix dependency resolution errors.
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 6m 14s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Reproducible demo or steps to reproduce from a blank project

eas configure
eas build -p android
image

@Nick-Anikin-dev Nick-Anikin-dev added the needs review Issue is ready to be reviewed by a maintainer label Oct 27, 2022
@EvanBacon EvanBacon transferred this issue from expo/expo-cli Oct 27, 2022
@wkozyra95
Copy link
Contributor

It looks like it's an issue with react-native-google-pay it depends on com.google.android.gms:play-services-base:15.0.1 which is one of the conflicting versions from the error message. I see the last commit in that repo was over 2 years ago, so it does not seem that package is maintained,

@Nick-Anikin-dev
Copy link
Author

It looks like it's an issue with react-native-google-pay it depends on com.google.android.gms:play-services-base:15.0.1 which is one of the conflicting versions from the error message. I see the last commit in that repo was over 2 years ago, so it does not seem that package is maintained,

Thank you. Now it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants