Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Sample application and application will not work on Unity 2023.2.10f1 when building for Android #237

Open
adirii opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@adirii
Copy link

adirii commented Oct 21, 2024

Describe the bug
Sample application and application will not work on Unity 2023.2.10f1

To Reproduce
Steps to reproduce the behavior:

This is the exception:


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.arch.core.internal.FastSafeIterableMap found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$AscendingIterator found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$DescendingIterator found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$Entry found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$IteratorWithAdditions found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$ListIterator found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.internal.SafeIterableMap$SupportRemove found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.arch.core.util.Function found in modules core-common-2.1.0 (androidx.arch.core:core-common:2.1.0) and jetified-androidx.arch.core.core-common-2.2.0 (androidx.arch.core.core-common-2.2.0.jar)
     Duplicate class androidx.collection.ArrayMap found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.ArraySet found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.CircularArray found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.CircularIntArray found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.ContainerHelpers found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.LongSparseArray found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.LruCache found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.SimpleArrayMap found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.collection.SparseArrayCompat found in modules collection-1.1.0 (androidx.collection:collection:1.1.0) and jetified-androidx.collection.collection-1.2.0 (androidx.collection.collection-1.2.0.jar)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$1 found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$AtomicHelper found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$Cancellation found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$Failure found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$Failure$1 found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$Listener found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$SafeAtomicHelper found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$SetFuture found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$SynchronizedHelper found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.AbstractResolvableFuture$Waiter found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter$Completer found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter$FutureGarbageCollectedException found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter$Resolver found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter$SafeFuture found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.CallbackToFutureAdapter$SafeFuture$1 found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.DirectExecutor found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.concurrent.futures.ResolvableFuture found in modules jetified-androidx.concurrent.concurrent-futures-1.1.0 (androidx.concurrent.concurrent-futures-1.1.0.jar) and jetified-concurrent-futures-1.0 (androidx.concurrent:concurrent-futures:1.0.0)
     Duplicate class androidx.core.accessibilityservice.AccessibilityServiceInfoCompat found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$1 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api16Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api21Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api22Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api23Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api28Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api30Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$Api31Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$PermissionCompatDelegate found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityCompat$SharedElementCallback21Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityManagerCompat found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat$ActivityOptionsCompatImpl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat$Api16Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat$Api21Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat$Api23Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityOptionsCompat$Api24Impl found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityRecreator found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityRecreator$1 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityRecreator$2 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.ActivityRecreator$3 found in modules core-1.9.0-runtime (androidx.core:core:1.9.0) and jetified-androidx.core.core-1.8.0-runtime (:androidx.core.core-1.8.0:)
     Duplicate class androidx.core.app.Act<message truncated>

If you use older unity (2022) it works. I suspect that androidx core 1.8 is not compatible with unity 2023 as if you remove some of the library it will compile but will not work.

Expected behavior
Android build should result in .apk output that works.

Screenshots
None

@adirii adirii added the bug Something isn't working label Oct 21, 2024
@GabrielePicco GabrielePicco changed the title [Bug] Sample application and application will not work on Unity 2023.2.10f1 [Bug] Sample application and application will not work on Unity 2023.2.10f1 when building for Android Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@adirii and others