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

How to fix, Type com.appsflyer.AFInAppEventParameterName is defined multiple times #277

Closed
mizelofgod opened this issue May 1, 2024 · 1 comment
Labels

Comments

@mizelofgod
Copy link

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
ERROR:C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex: D8: Type com.appsflyer.AFInAppEventParameterName is defined multiple times: C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex, C:\Users\cho20.gradle\caches\transforms-3\886e9bbf5b3933a1eef6d1ccc12cc4b9\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Type com.appsflyer.AFInAppEventParameterName is defined multiple times: C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex, C:\Users\cho20.gradle\caches\transforms-3\886e9bbf5b3933a1eef6d1ccc12cc4b9\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:151)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:138)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.merge(DexMergingTask.kt:859)
at com.android.build.gradle.internal.tasks.DexMergingWorkAction.run(DexMergingTask.kt:805)
at com.android.build.gradle.internal.profile.ProfileAwareWorkAction.execute(ProfileAwareWorkAction.kt:74)
at org.gradle.workers.internal.DefaultWorkerServer.execute(DefaultWorkerServer.java:63)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:66)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1$1.create(NoIsolationWorkerFactory.java:62)
at org.gradle.internal.classloader.ClassLoaderUtils.executeInClassloader(ClassLoaderUtils.java:97)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.lambda$execute$0(NoIsolationWorkerFactory.java:62)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:44)
at org.gradle.workers.internal.AbstractWorker$1.call(AbstractWorker.java:41)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:79)
at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:79)
at org.gradle.workers.internal.AbstractWorker.executeWrappedInBuildOperation(AbstractWorker.java:41)
at org.gradle.workers.internal.NoIsolationWorkerFactory$1.execute(NoIsolationWorkerFactory.java:59)
at org.gradle.workers.internal.DefaultWorkerExecutor.lambda$submitWork$2(DefaultWorkerExecutor.java:206)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runExecution(DefaultConditionalExecutionQueue.java:214)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.runBatch(DefaultConditionalExecutionQueue.java:164)
at org.gradle.internal.work.DefaultConditionalExecutionQueue$ExecutionRunner.run(DefaultConditionalExecutionQueue.java:131)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex
at Version.fakeStackEntry(Version_3.1.66.java:0)
at com.android.tools.r8.internal.pO0.a(SourceFile:68)
at com.android.tools.r8.internal.pO0.a(SourceFile:28)
at com.android.tools.r8.internal.pO0.a(SourceFile:27)
at com.android.tools.r8.internal.pO0.b(SourceFile:3)
at com.android.tools.r8.D8.run(D8.java:11)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:136)
... 35 more
Caused by: com.android.tools.r8.internal.b: Type com.appsflyer.AFInAppEventParameterName is defined multiple times: C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex, C:\Users\cho20.gradle\caches\transforms-3\886e9bbf5b3933a1eef6d1ccc12cc4b9\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex
at com.android.tools.r8.internal.jl1.a(SourceFile:14)
at com.android.tools.r8.internal.jl1.a(SourceFile:22)
at com.android.tools.r8.internal.mf1.b(SourceFile:6)
at com.android.tools.r8.internal.mf1.a(SourceFile:23)
at com.android.tools.r8.internal.mf1.a(SourceFile:10)
at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2048)
at com.android.tools.r8.internal.mf1.a(SourceFile:6)
at com.android.tools.r8.graph.r2$a.f(SourceFile:4)
at com.android.tools.r8.dex.b.a(SourceFile:96)
at com.android.tools.r8.dex.b.a(SourceFile:21)
at com.android.tools.r8.D8.a(D8.java:21)
at com.android.tools.r8.D8.d(D8.java:11)
at com.android.tools.r8.D8.b(D8.java:1)
at com.android.tools.r8.internal.pO0.a(SourceFile:24)
... 38 more

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':launcher:mergeExtDexRelease'.

A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
There was a failure while executing work items
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
Type com.appsflyer.AFInAppEventParameterName is defined multiple times: C:\Users\cho20.gradle\caches\transforms-3\ed0820fd1cccd684619703ceb3d6ff3f\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex, C:\Users\cho20.gradle\caches\transforms-3\886e9bbf5b3933a1eef6d1ccc12cc4b9\transformed\jetified-af-android-sdk-6.13.0-runtime\classes.dex
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.

  • 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 2s

@pazlavi pazlavi added the support label May 1, 2024
Copy link

github-actions bot commented May 1, 2024

👋 Hi @mizelofgod and Thank you for reaching out to us.
In order for us to provide optimal support, please submit a ticket to our support team at [email protected].
When submitting the ticket, please specify:

  • ✅ your AppsFlyer sign-up (account) email
  • ✅ app ID
  • ✅ production steps
  • ✅ logs
  • ✅ code snippets
  • ✅ and any additional relevant information.

@af-vero af-vero closed this as completed May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants