Unity Project Fails to Build

I can’t figure out what caused this, i had built this project successfully before, but ads didn’t seem to be appearing, so I forced an Android resolve, and suddenly I’m no longer able to build my project. It says 1 worker raised an exception, I get multiple errors, but the one that sticks out the most to me is this one,

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.RemoteActionCompatParcelizer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityOptionsCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$2 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$3 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$LifecycleCheckCallbacks found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AlarmManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppComponentFactory found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppLaunchChecker found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppOpsManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.BundleCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.BundleCompat$BundleCompatBaseImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ComponentActivity found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ComponentActivity$ExtraData found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.CoreComponentFactory found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.CoreComponentFactory$CompatWrapped found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.DialogCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsBaseImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$MetricType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel$Stub found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel$Stub$Proxy found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CommandProcessor found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatJobEngine found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatWorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$GenericWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobWorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$WorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NavUtils found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationBuilderWithBuilderAccessor found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$Extender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$SemanticAction found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$WearableExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BadgeIconType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BigPictureStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BigTextStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$DecoratedCustomViewStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Extender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$GroupAlertBehavior found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$InboxStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$MessagingStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$MessagingStyle$Message found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$NotificationVisibility found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$StreamType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Style found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$WearableExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompatBuilder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompatExtras found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompatJellybean found in modules jetified-androidx.core.c<message truncated>

I don’t really understand it, it seems to indicate I have multiple duplicate classes in my project? Again, I was able to build this project successfully just before I forced Android to resolve.

Any help would be appreciated, thanks.

Edit:Well, it literally took me a few hours, but I figured it out… I guess? I can’t really post a solution because I have no idea what solved it, I installed JDK and tried a million things, in the end I just reverted to the Unity default JDK and it worked… ? I posted this using the original one, so idk lol

Sorry to bump this, but this error keeps cropping up randomly. I keep solving it, but it takes a lot of trial and error, I am currently getting the same issue. Not sure what’s causing it…

Does anyone know how to fix this? I can’t seem to figure out how to fix this.

Sorry to bump this a million times, but if anyone could please help, I would appreciate it. I still haven’t been able to build, now it’s getting a "picked up JAVA_TOOLS_OPTIONS” Error, consistently. I tried a million things and can’t fix it. I read to erase the JAVA_TOOLS_OPTIONS environment variable, but it does not exist.

The error in your first post indicates there are multiple libraries providing the same classes. In your case, you appear to have jetified-* and jetified-androidx-* jars colliding, different jars implementing the same functionality.

Try deleting the jars with the lower version number

1 Like

Sorry, I should have edited the first post, I think I fixed that? I get a new error depending on what I try, so if I try using Unity’s JDK, I get
Starting a gradle daemon, 1 compatible 2 stopped
Building gradle failed

If I try with the JDK I downloaded and installed, I get the picked up JAVA_TOOLS_OPTIONS exception.

Try sticking to the one installed with unity.

Building gradle failed is never the full error. Failing Android builds tend to throw a lot of errors which can seem daunting. The tricky part is finding the info that’s relevant to you.

Can you post the full output after a failed build using the unity included jdk?

1 Like

Ah, Sorry, I’m dumb lol. It is the same error as when I first posted. Where are the .jar files located?

Search for jetified-androidx.core.core-1.2.0-runtime.jar in your project folder, probably in plugins/android

1 Like

Hmm, nothing is showing up. I tried both 1.1.0, and 1.2.0 which it says are conflicting.

Here’s the full error, just in case it pulled a fast one on me

CommandInvokationFailure: Gradle build failed.
C:\Program Files\2020.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\2020.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityOptionsCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$2 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$3 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ActivityRecreator$LifecycleCheckCallbacks found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AlarmManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppComponentFactory found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppLaunchChecker found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.AppOpsManagerCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.BundleCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.BundleCompat$BundleCompatBaseImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ComponentActivity found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.ComponentActivity$ExtraData found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.CoreComponentFactory found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.CoreComponentFactory$CompatWrapped found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.DialogCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsApi24Impl$1 found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$FrameMetricsBaseImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.FrameMetricsAggregator$MetricType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel$Stub found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.INotificationSideChannel$Stub$Proxy found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CommandProcessor found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatJobEngine found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatWorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$CompatWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$GenericWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobServiceEngineImpl$WrapperWorkItem found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$JobWorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.JobIntentService$WorkEnqueuer found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NavUtils found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationBuilderWithBuilderAccessor found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$Extender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$SemanticAction found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Action$WearableExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BadgeIconType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BigPictureStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$BigTextStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$CarExtender$UnreadConversation$Builder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$DecoratedCustomViewStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Extender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$GroupAlertBehavior found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$InboxStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$MessagingStyle found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$MessagingStyle$Message found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$NotificationVisibility found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$StreamType found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$Style found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompat$WearableExtender found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.0.jar (core-1.1.0.jar)
  Duplicate class androidx.core.app.NotificationCompatBuilder found in modules jetified-androidx.core.core-1.2.0-runtime.jar (:androidx.core.core-1.2.0:) and jetified-core-1.1.<message truncated>

Ah, I found the 1.2.0 one, but not the 1.1.0 which it says it’s conflicting with

You’ll find 1.1.0 in there too somewhere.

Also, make sure jetifier and androidx are enabled in your dependency revolver

1 Like

Okay! I found it, idk why the name was slightly different in the error name than the actual file name, it seems to let me build now. Thank you!

@nilsdr @Mashimaro7 Thank you both! You guys helped me figure it out! I had a duplicated android library as well!

There was another random package from a third-party plugin that had the library embedded inside their package.

Btw the reason the name is different it’s seems to be because when Jetifier processes the libraries, it adds a prefix and suffix :

androidx.core.core-1.2.0.jar

becomes:

jetified-androidx.core.core-1.2.0-runtime.jar

1 Like