Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Project Fails to Build

Discussion in 'Scripting' started by Mashimaro7, Dec 29, 2020.

  1. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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,
    Code (CSharp):
    1. FAILURE: Build failed with an exception.
    2.  
    3. * What went wrong:
    4. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    5. > 1 exception was raised by workers:
    6.   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)
    7.   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)
    8.   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)
    9.   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)
    10.   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)
    11.   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)
    12.   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)
    13.   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)
    14.   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)
    15.   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)
    16.   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)
    17.   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)
    18.   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)
    19.   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)
    20.   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)
    21.   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)
    22.   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)
    23.   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)
    24.   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)
    25.   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)
    26.   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)
    27.   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)
    28.   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)
    29.   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)
    30.   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)
    31.   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)
    32.   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)
    33.   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)
    34.   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)
    35.   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)
    36.   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)
    37.   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)
    38.   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)
    39.   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)
    40.   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)
    41.   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)
    42.   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)
    43.   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)
    44.   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)
    45.   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)
    46.   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)
    47.   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)
    48.   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)
    49.   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)
    50.   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)
    51.   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)
    52.   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)
    53.   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)
    54.   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)
    55.   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)
    56.   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)
    57.   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)
    58.   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)
    59.   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)
    60.   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)
    61.   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)
    62.   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)
    63.   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)
    64.   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)
    65.   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)
    66.   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)
    67.   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)
    68.   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)
    69.   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)
    70.   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)
    71.   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)
    72.   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)
    73.   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)
    74.   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)
    75.   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)
    76.   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)
    77.   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)
    78.   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)
    79.   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)
    80.   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)
    81.   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)
    82.   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)
    83.   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)
    84.   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
     
    Last edited: Dec 29, 2020
  2. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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...
     
  3. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Does anyone know how to fix this? I can't seem to figure out how to fix this.
     
  4. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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.
     
  5. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    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
     
    Mashimaro7 likes this.
  6. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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.
     
  7. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    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?
     
    Mashimaro7 likes this.
  8. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Ah, Sorry, I'm dumb lol. It is the same error as when I first posted. Where are the .jar files located?
     
  9. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    Search for jetified-androidx.core.core-1.2.0-runtime.jar in your project folder, probably in plugins/android
     
    Mashimaro7 likes this.
  10. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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

    Code (CSharp):
    1. CommandInvokationFailure: Gradle build failed.
    2. 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"
    3.  
    4. stderr[
    5.  
    6. FAILURE: Build failed with an exception.
    7.  
    8. * What went wrong:
    9. Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
    10. > 1 exception was raised by workers:
    11.   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)
    12.   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)
    13.   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)
    14.   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)
    15.   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)
    16.   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)
    17.   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)
    18.   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)
    19.   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)
    20.   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)
    21.   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)
    22.   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)
    23.   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)
    24.   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)
    25.   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)
    26.   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)
    27.   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)
    28.   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)
    29.   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)
    30.   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)
    31.   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)
    32.   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)
    33.   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)
    34.   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)
    35.   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)
    36.   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)
    37.   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)
    38.   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)
    39.   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)
    40.   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)
    41.   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)
    42.   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)
    43.   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)
    44.   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)
    45.   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)
    46.   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)
    47.   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)
    48.   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)
    49.   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)
    50.   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)
    51.   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)
    52.   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)
    53.   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)
    54.   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)
    55.   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)
    56.   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)
    57.   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)
    58.   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)
    59.   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)
    60.   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)
    61.   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)
    62.   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)
    63.   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)
    64.   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)
    65.   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)
    66.   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)
    67.   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)
    68.   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)
    69.   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)
    70.   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)
    71.   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)
    72.   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)
    73.   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)
    74.   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)
    75.   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)
    76.   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)
    77.   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)
    78.   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)
    79.   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)
    80.   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)
    81.   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)
    82.   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)
    83.   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)
    84.   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)
    85.   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)
    86.   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)
    87.   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>
    88.  
     
  11. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    Ah, I found the 1.2.0 one, but not the 1.1.0 which it says it's conflicting with
     
  12. nilsdr

    nilsdr

    Joined:
    Oct 24, 2017
    Posts:
    374
    You'll find 1.1.0 in there too somewhere.

    Also, make sure jetifier and androidx are enabled in your dependency revolver
     
    Mashimaro7 likes this.
  13. Mashimaro7

    Mashimaro7

    Joined:
    Apr 10, 2020
    Posts:
    723
    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!
     
  14. danUnity

    danUnity

    Joined:
    Apr 28, 2015
    Posts:
    229
    @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
     
    Mashimaro7 likes this.