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
Task :app:checkDebugDuplicateClasses FAILED #1383
Comments
Thanks for reporting @alexmyshchyshyn, It looks like there is an incompatibility with some versions of Please see this comment if it can help you resolve the conflicts. |
@nan-li Thanks for reply. Here is the list of all of the dependencies.
|
The issue was caused by this library I resolved this the following way:
|
@alexmyshchyshyn Good to hear you got it working and for sharing the details as it may help others. |
I have the same problem The libraries I use are:
|
I am using the camera plugin.
|
This worked for Me, I was using react native maps
|
im getting the same error after following the docs, ios works but android build fails with this same error
relevant package.json
|
i ran
|
What went wrong:
|
The same error happens in my Jetpack compose App
e: /home/stephenmuindi/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.10/6d5560a229477df9406943d5feda5618e98eb64c/kotlin-stdlib-1.8.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/16b749c141be3a4eb908379444d9fff3/transformed/ui-graphics-1.4.0-api.jar!/META-INF/ui-graphics_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/2c9959f09cd02f709da39a616c5abe2e/transformed/material-icons-core-1.4.0-api.jar!/META-INF/material-icons-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/2ff37844650cb58e36e34ac2dc0251c0/transformed/ui-text-1.4.0-api.jar!/META-INF/ui-text_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/4a4ddcc12f91d31685c8a3d5f9aebc04/transformed/lifecycle-runtime-compose-2.6.1-api.jar!/META-INF/lifecycle-runtime-compose_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/4af3fc547228fd94dd857433df65d437/transformed/ui-tooling-preview-1.4.0-api.jar!/META-INF/ui-tooling-preview_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/6a9fdf903c2595cd3378ddb329bc3dbf/transformed/ui-unit-1.4.0-api.jar!/META-INF/ui-unit_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/74f69584aaa76db4cc93f0c9f64707eb/transformed/animation-core-1.4.0-api.jar!/META-INF/animation-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/8bd03880627cf51ea90ccd93b518dbd7/transformed/lifecycle-livedata-2.6.1-api.jar!/META-INF/lifecycle-livedata_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/9b1128d0316556c315104a9a6fae96c0/transformed/material-1.4.0-api.jar!/META-INF/material_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/9ef9968ac7240f02c939e811f13d8be9/transformed/activity-1.7.0-api.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/9f1b5790d990941610cd9b9ed7a60111/transformed/lifecycle-viewmodel-savedstate-2.6.1-api.jar!/META-INF/lifecycle-viewmodel-savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/a977673d4b80fdb6feef2e22cdc3d902/transformed/foundation-layout-1.4.0-api.jar!/META-INF/foundation-layout_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/b70dcb3b0c10aad13dc859102ee9ce7c/transformed/runtime-1.4.0-api.jar!/META-INF/runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/c2a61e6f33bd865d0cf422bdb9b3b3d9/transformed/ui-geometry-1.4.0-api.jar!/META-INF/ui-geometry_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/c42f8ba5ffd6fd3f32f70a7a5e86cc54/transformed/lifecycle-viewmodel-2.6.1-api.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/d0e71daba42a645f0203e859dd078bba/transformed/savedstate-ktx-1.2.1-api.jar!/META-INF/savedstate-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/d49aa947373ae0b77c144ce566a59541/transformed/runtime-saveable-1.4.0-api.jar!/META-INF/runtime-saveable_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/dcb7538b5b6b363b8150346f70cea6b9/transformed/foundation-1.4.0-api.jar!/META-INF/foundation_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/.gradle/caches/transforms-3/f594ec439a0c146f811da23c08c71759/transformed/ui-1.4.0-api.jar!/META-INF/ui_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. e: /home/stephenmuindi/AndroidStudioProjects/SocialsApp/app/src/main/java/com/steve_md/socialsapp/ui/theme/Shape.kt: (1, 13): Expecting a top level declaration e: /home/stephenmuindi/AndroidStudioProjects/SocialsApp/app/src/main/java/com/steve_md/socialsapp/ui/theme/Shape.kt: (1, 22): Expecting a top level declaration e: /home/stephenmuindi/AndroidStudioProjects/SocialsApp/app/src/main/java/com/steve_md/socialsapp/ui/theme/Shape.kt: (1, 34): Expecting a top level declaration /home/stephenmuindi/.gradle/caches/transforms-3/b70dcb3b0c10aad13dc859102ee9ce7c/transformed/runtime-1.4.0-api.jar!/META-INF/runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/bc902325b61f824968e8a1ac54c98db0/transformed/lifecycle-livedata-core-2.6.1-api.jar!/META-INF/lifecycle-livedata-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/c2a61e6f33bd865d0cf422bdb9b3b3d9/transformed/ui-geometry-1.4.0-api.jar!/META-INF/ui-geometry_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/c42f8ba5ffd6fd3f32f70a7a5e86cc54/transformed/lifecycle-viewmodel-2.6.1-api.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/c6abd5c1221d7a68dfa6e1a3fb699e39/transformed/lifecycle-runtime-ktx-2.6.1-api.jar!/META-INF/lifecycle-runtime-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/d0e71daba42a645f0203e859dd078bba/transformed/savedstate-ktx-1.2.1-api.jar!/META-INF/savedstate-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/d49aa947373ae0b77c144ce566a59541/transformed/runtime-saveable-1.4.0-api.jar!/META-INF/runtime-saveable_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/dba9bc9658daabef2aab3420bb31ca5a/transformed/ui-tooling-data-1.4.0-api.jar!/META-INF/ui-tooling-data_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/dc4191e2115e9f9798559581ab5ad552/transformed/activity-ktx-1.7.0-api.jar!/META-INF/activity-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/dcb7538b5b6b363b8150346f70cea6b9/transformed/foundation-1.4.0-api.jar!/META-INF/foundation_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0. /home/stephenmuindi/.gradle/caches/transforms-3/f594ec439a0c146f811da23c08c71759/transformed/ui-1.4.0-api.jar!/META-INF/ui_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
2: Task failed with an exception.
BUILD FAILED in 20s |
FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
Duplicate class com.google.protobuf.BinaryWriter found in modules jetified-protobuf-java-3.15.2 (com.google.protobuf:protobuf-java:3.15.2) and jetified-protobuf-javalite-3.21.7 (com.google.protobuf:protobuf-javalite:3.21.7) Go to the documentation to learn how to Fix dependency resolution errors. ============================================================================== 2: Task failed with an exception.
for more information ==============================================================================
BUILD FAILED in 1m 47s |
1 similar comment
FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
Duplicate class com.google.protobuf.BinaryWriter found in modules jetified-protobuf-java-3.15.2 (com.google.protobuf:protobuf-java:3.15.2) and jetified-protobuf-javalite-3.21.7 (com.google.protobuf:protobuf-javalite:3.21.7) Go to the documentation to learn how to Fix dependency resolution errors. ============================================================================== 2: Task failed with an exception.
for more information ==============================================================================
BUILD FAILED in 1m 47s |
did you find any solution for it? |
@SonamSharmac6160 add Note: In my case "react-native": "0.72.5", |
Adding this code inside app level/build.gradle
and adding this code inside project level/build.gradle
It fixed this error 100%. It worked for me. |
I got to fix it and it worked 100% Refer here: |
Description:
Hi. I have installed
react-native-onesignal
and after runningnpm run android
I get errorTask :app:checkDebugDuplicateClasses FAILED
( will attach details it below ).My setup follows documentation:
Environment
Steps to Reproduce Issue:
Anything else:
FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugDuplicateClasses'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 25s
The text was updated successfully, but these errors were encountered: