- Home /
Question by
hydrox1 · Aug 03, 2021 at 12:29 PM ·
androidandroid buildjavaandroid sdknotifications
One Signal dependecies issue
Hello, i am having trouble with including One Signal SDK into my unity project for some reason i cannot resolve it. So i ahve done everything according to the unity sdk documentation of the One Signal api, and whenever i am trying to build i get this errors (posted below). I have no prior knowledge to Gradle, and i am really struggling with this issue. Thank you.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$1 found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl$1 found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityManagerCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityOptionsCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.AlarmManagerCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.AppComponentFactory found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.AppLaunchChecker found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.AppOpsManagerCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.BundleCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.BundleCompat$BundleCompatBaseImpl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ComponentActivity found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.ComponentActivity$ExtraData found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.CoreComponentFactory found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.CoreComponentFactory$CompatWrapped found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.FrameMetricsAggregator found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1 found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsBaseImpl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.FrameMetricsAggregator$MetricType found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$CommandProcessor found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$CompatJobEngine found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$CompatWorkEnqueuer found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$CompatWorkItem found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$GenericWorkItem found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$JobWorkEnqueuer found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.JobIntentService$WorkEnqueuer found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NavUtils found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationBuilderWithBuilderAccessor found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Action found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Action$Builder found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Action$Extender found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Action$SemanticAction found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Action$WearableExtender found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$BadgeIconType found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$BigPictureStyle found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$BigTextStyle found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Builder found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$CarExtender found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation$Builder found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$DecoratedCustomViewStyle found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Extender found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$GroupAlertBehavior found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$InboxStyle found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$MessagingStyle found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$MessagingStyle$Message found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$NotificationVisibility found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$StreamType found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$Style found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompat$WearableExtender found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompatBuilder found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompatExtras found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompatJellybean found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompatSideChannelService found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationCompatSideChannelService$NotificationSideChannelStub found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationManagerCompat found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runtime.jar (:core-1.0.0-rc02:)
Duplicate class androidx.core.app.NotificationManagerCompat$CancelTask found in modules androidx.core.core-1.0.0-runtime.jar (:androidx.core.core-1.0.0:) and core-1.0.0-rc02-runti<message truncated>
Comment
Your answer
Follow this Question
Related Questions
Issue building my game for Android 0 Answers
Should we download android modules again? 1 Answer
Can I build the project I made with unity 2018 using unity 2019? 1 Answer
com.android.tools.r8 compilation error please help 0 Answers
Cant find android SDK root folder when first trying to build for android 3 Answers