Hi there,
It’s been a day since i’m struggling with two quite similar build errors. So would appreciate some help.
The resolver cant read a file but the path is correct and I can personnaly open it.
I also noticed that the Log error path comes from a user that i don’t even have “/Users/amaurice” which is very weird. How could i get an error from a file I don’t have ? And who’s giving this wrong path
First error :
Unable to read Android dependencies from Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml.
Android dependencies in this file will be ignored.
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.XmlDependencies:ReadAll (Google.Logger)
GooglePlayServices.AndroidXmlDependencies:ReadAll (Google.Logger)
GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action`1<bool>,bool,bool,bool)
GooglePlayServices.PlayServicesResolver/<ScheduleResolve>c__AnonStorey1E:<>m__3F ()
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob ()
GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action`1<bool>,bool)
GooglePlayServices.PlayServicesResolver:ExecuteMenuResolve (bool)
GooglePlayServices.PlayServicesResolver:MenuForceResolve ()
Second error,
Same issue with the path using a user i don’t have, but this time I don’t see any “com.unity.ads” in “Packages”
But I do have a “com.unity.ads@4.12.0” in Library/packageCache" :
Unable to read Android dependencies from Packages/com.unity.ads/Editor/Source/Dependencies.xml.
Android dependencies in this file will be ignored.
UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:136)
GooglePlayServices.XmlDependencies:ReadAll (Google.Logger)
GooglePlayServices.AndroidXmlDependencies:ReadAll (Google.Logger)
GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action`1<bool>,bool,bool,bool)
GooglePlayServices.PlayServicesResolver/<ScheduleResolve>c__AnonStorey1E:<>m__3F ()
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob ()
GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action`1<bool>,bool)
GooglePlayServices.PlayServicesResolver:ExecuteMenuResolve (bool)
GooglePlayServices.PlayServicesResolver:MenuForceResolve ()
Context :
Unity 2022.3.18f1
GooglePlayService SDK
PlayFab SDK
Unity In-Apps
Advertisement Legacy
Thanks for your time
1 Like
After trying evrything I miraculously found a way, thanks though for your hand Makaka 
I somehow fixed it by :
■ Uninstalling “Advertisement Legacy”
■ Logging out of my current windows session
■ Logging back in
■ Deleting Library
■ Opening the project again
■ Downloading “Advertisement Legacy” again
■ Force resolve
■ Succeed 
That’s for the good news
The bad news is that when I build, gradle stumble on duplicate classes :')
I can’t find the classes that are mentionned. I’d like to try removing the oldest version but cant find where it is located
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
Duplicate class androidx.activity.Cancellable found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$1 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$2 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$2$1 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$2$2 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$3 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$4 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$5 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ComponentActivity$NonConfigurationInstances found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.ImmLeaksCleaner found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.OnBackPressedCallback found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.OnBackPressedDispatcher found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.OnBackPressedDispatcher$LifecycleOnBackPressedCancellable found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.OnBackPressedDispatcher$OnBackPressedCancellable found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.OnBackPressedDispatcherOwner found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.contextaware.ContextAware found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.contextaware.ContextAwareHelper found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.contextaware.OnContextAvailableListener found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResult found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResult$1 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultCallback found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultCaller found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultLauncher found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry$1 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry$2 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry$3 found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry$CallbackAndContract found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistry$LifecycleContainer found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.ActivityResultRegistryOwner found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.IntentSenderRequest found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.IntentSenderRequest$Builder found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContract found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContract$SynchronousResult found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$CreateDocument found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$GetContent found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$GetMultipleContents found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$OpenDocument found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$OpenDocumentTree found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$OpenMultipleDocuments found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$PickContact found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$RequestMultiplePermissions found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$RequestPermission found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$StartActivityForResult found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$StartIntentSenderForResult found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$TakePicture found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$TakePicturePreview found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.activity.result.contract.ActivityResultContracts$TakeVideo found in modules jetified-activity-1.2.3-runtime (androidx.activity:activity:1.2.3) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
Duplicate class androidx.annotation.AnimRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.AnimatorRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.AnyRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.AnyThread found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.ArrayRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.AttrRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.BinderThread found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.BoolRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.CallSuper found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
Duplicate class androidx.annotation.CheckResult found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.2.0 (androidx.annotation.annotation-1.2.0.jar)
<message truncated>
EDIT : I just had to remove each non-jetified file that conflicted with the jetified one. I simply used the project search to find them. (They where “.aar” and “.jar” files)
1 Like