Skip to content

[Bug] EDM4U 1.2.183: Error occurs in GooglePlayGamesPlugin #716

@crSudo

Description

@crSudo

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2022.3.22f1
  • External Dependency Manager version: 1.2.183
  • Source you installed EDM4U: GoogleMobileAds-v9.3.0.unitypackage, GooglePlayGamesPlugin-0.11.01.unitypackage (.unitypackage or Unity Package Manager)
  • Features in External Dependency Manager in use: Android Resolver (Android Resolver, iOS Resolver, VersionHandler, etc.)
  • Plugins SDK in use: AdMob, play-games-plugin (Firebase, Admob, Facebook, etc.)
  • Platform you are using the Unity editor on: Windows (Mac, Windows, or Linux)

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

※I am Japanese. I am using a translation site for questions. Please let me know if there is any misunderstanding.

①. Create two new projects in Unity: A-project and B-project.
②. A-project: Import GooglePlayGamesPlugin-0.11.01.unitypackage.
③. B-project: Import GoogleMobileAds-v9.3.0.unitypackage.
④. A-project: Delete ExternalDependencyManager.
⑤. A-project: Copy ExternalDependencyManager from B-project to A-project.
⑥. A-project: Run [Assets]-[External Dependency Manager]-[Android Resolver]-[Resolve].
⑦. A-project: Run [Build Setting]-[Build].
The following error occurs.

Execution failed for task ':launcher:mergeLibDexDebug'.
> Could not resolve all files for configuration ':launcher:debugRuntimeClasspath'.
   > Failed to transform classes.jar (project :unityLibrary) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, com.android.build.api.attributes.AgpVersionAttr=7.1.2, com.android.build.api.attributes.BuildTypeAttr=debug, com.android.build.gradle.internal.attributes.VariantAttr=debug, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=22, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Could not resolve all files for configuration ':launcher:debugRuntimeClasspath'.
         > No variants of com.google.games:gpgs-plugin-support:0.11.01 match the consumer attributes:
             - com.google.games:gpgs-plugin-support:0.11.01 configuration runtime:
                 - Incompatible because this component declares attribute 'artifactType' with value 'srcaar' and the consumer needed attribute 'artifactType' with value 'android-classes-jar'
                 - Other compatible attributes:
                     - Doesn't say anything about asm-transformed-variant (required 'NONE')
                     - Doesn't say anything about dexing-enable-desugaring (required 'true')
                     - Doesn't say anything about dexing-is-debuggable (required 'true')
                     - Doesn't say anything about dexing-min-sdk (required '22')

If you look at \Assets\Plugins\Android\settingsTemplate.gradle, you will see the following:
url (unityProjectPath + "/Assets/GooglePlayGames/com.google.play.games/Editor/m2repository") // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
In EDM4U 1.2.179, GeneratedLocalRepo is written in the path.
url "file:///D:/ApplicationUnity_SDK/GooglePlayGamesPlugin/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository" // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11
I think the error occurs because GeneratedLocalRepo is not specified. Is that correct?

◇Package download site
https://github.com/googleads/googleads-mobile-unity/releases/tag/v9.3.0
https://github.com/playgameservices/play-games-plugin-for-unity

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)

100%

Activity

google-oss-bot

google-oss-bot commented on Oct 30, 2024

@google-oss-bot

This issue does not seem to follow the issue template. Make sure you provide all the required information.

changed the title [-][Bug] [/-] [+][Bug] EDM4U 1.2.183: Error occurs in GooglePlayGamesPlugin[/+] on Oct 30, 2024
crSudo

crSudo commented on Oct 31, 2024

@crSudo
Author

I fixed it with the following but I get the same error:

\Assets\GooglePlayGames\com.google.play.games\Editor\GooglePlayGamesPluginDependencies.xml

Packages/com.google.play.games/Editor/m2repository

Assets/GooglePlayGames/com.google.play.games/Editor/m2repository

crSudo

crSudo commented on Oct 31, 2024

@crSudo
Author

This issue does not seem to follow the issue template. Make sure you provide all the required information.

The title was left blank so we added it.
Is there anything else that doesn't follow the template?

StefanMilkov

StefanMilkov commented on Oct 31, 2024

@StefanMilkov

WORKAROUND:
I've had the same problem. After EDM Resolve i had to change one path in settingsTemplate.gradle.
From this:
maven {
url (unityProjectPath + "/Assets/GooglePlayGames/Editor/m2repository")
}

To this:
maven {
url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/Editor/m2repository")
}

JamesKim2998

JamesKim2998 commented on Nov 1, 2024

@JamesKim2998

+1

33 remaining items

crSudo

crSudo commented on Nov 12, 2024

@crSudo
Author

@argzdev

I verified further. I changed the following line in \Assets\Plugins\Android\settingsTemplate.gradle and it worked correctly.
url (unityProjectPath + "/Assets/GooglePlayGames/com.google.play.games/Editor/m2repository") // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11

url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository") // Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11

It seems like the path setting process is the problem, what do you think?

Best Regards
crSudo

argzdev

argzdev commented on Nov 15, 2024

@argzdev
Collaborator

I did notice that. However, for me this appears as a warning. Since the path should be detected and corrected by the EDM4U automatically.
Screenshot 2024-11-15 at 9 09 32 PM

This means that the build will still continue even though this warning appears.

Full stacktrace:

Assets/GooglePlayGames/com.google.play.games/Editor/GooglePlayGamesPluginDependencies.xml:11: Repo path 'Packages/com.google.play.games/Editor/m2repository' does not exist, will try using 'Assets/GooglePlayGames/com.google.play.games/Editor/m2repository' instead.
UnityEngine.Debug:LogWarning (object)
Google.Logger:Log (string,Google.LogLevel) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/Logger.cs:129)
GooglePlayServices.PlayServicesResolver:Log (string,Google.LogLevel) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1077)
GooglePlayServices.GradleResolver:RepoPathToUri (string,string) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/GradleResolver.cs:230)
GooglePlayServices.GradleResolver:DependenciesToRepoUris (System.Collections.Generic.IEnumerable`1<Google.JarResolver.Dependency>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/GradleResolver.cs:279)
GooglePlayServices.PlayServicesResolver:GetRepos (System.Collections.Generic.IEnumerable`1<Google.JarResolver.Dependency>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2209)
GooglePlayServices.LocalMavenRepository:FindLocalRepos (System.Collections.Generic.ICollection`1<Google.JarResolver.Dependency>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/LocalMavenRepository.cs:41)
GooglePlayServices.LocalMavenRepository:FindAarsInLocalRepos (System.Collections.Generic.ICollection`1<Google.JarResolver.Dependency>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/LocalMavenRepository.cs:76)
GooglePlayServices.LocalMavenRepository:PatchPomFilesInLocalRepos (System.Collections.Generic.ICollection`1<Google.JarResolver.Dependency>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/LocalMavenRepository.cs:191)
GooglePlayServices.PlayServicesResolver:DeleteResolvedLibrariesFromGradleTemplate (bool,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1680)
GooglePlayServices.PlayServicesResolver:ResolveUnsafe (System.Action`1<bool>,bool,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2023)
GooglePlayServices.PlayServicesResolver:ResolveUnsafeAfterPromptCheck (System.Action`1<bool>,bool,bool,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1944)
GooglePlayServices.PlayServicesResolver/<>c__DisplayClass113_0:<ResolveUnsafeAfterJetifierCheck>b__0 (bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1853)
GooglePlayServices.PlayServicesResolver/<>c__DisplayClass144_0:<CanEnableJetifierOrPromptUser>b__1 (GooglePlayServices.PlayServicesResolver/ApiLevelJetifierResult) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2825)
GooglePlayServices.PlayServicesResolver:CheckApiLevelForJetifier (bool,string,System.Action`1<GooglePlayServices.PlayServicesResolver/ApiLevelJetifierResult>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2789)
GooglePlayServices.PlayServicesResolver/<>c__DisplayClass144_0:<CanEnableJetifierOrPromptUser>b__0 (bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2810)
GooglePlayServices.PlayServicesResolver:CheckGradleVersionForJetifier (bool,string,System.Action`1<bool>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2717)
GooglePlayServices.PlayServicesResolver:CanEnableJetifierOrPromptUser (string,System.Action`1<bool>) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:2808)
GooglePlayServices.PlayServicesResolver:ResolveUnsafeAfterJetifierCheck (System.Action`1<bool>,bool,bool,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1850)
GooglePlayServices.PlayServicesResolver:ResolveUnsafeAfterMainTemplateCheck (System.Action`1<bool>,bool,bool,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1796)
GooglePlayServices.PlayServicesResolver/<>c__DisplayClass110_0:<ScheduleResolve>b__1 () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1751)
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1598)
GooglePlayServices.PlayServicesResolver:ScheduleResolve (bool,bool,System.Action`1<bool>,bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1764)
GooglePlayServices.PlayServicesResolver:AutoResolve (System.Action) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1258)
GooglePlayServices.PlayServicesResolver/<>c:<ScheduleAutoResolve>b__86_1 () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/AndroidResolver/src/PlayServicesResolver.cs:1237)
Google.RunOnMainThread:ExecutePollingJobs () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:409)
Google.RunOnMainThread/<>c:<ExecuteAllUnnested>b__28_0 () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:541)
Google.RunOnMainThread:RunAction (System.Action) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:343)
Google.RunOnMainThread:ExecuteAllUnnested (bool) (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:530)
Google.RunOnMainThread:ExecuteAll () (at /Users/amaurice/Documents/GitHub/unity-jar-resolver/source/VersionHandlerImpl/src/RunOnMainThread.cs:512)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:381)

It should be detected by this code in the Gradle Resolver.

"{0}: Repo path '{1}' does not exist, will try using '{2}' instead.",

There should be no need to manually change the file path. Can you verify if there's only a single version of EDM4U under Assets > ExternalDependencyManager > Editor
Screenshot 2024-11-15 at 11 32 53 PM

crSudo

crSudo commented on Nov 16, 2024

@crSudo
Author

Thank you for your research, @argzdev.

When I set the data in [Resources Definition] in the Unity menu bar [Windows]-[Google Play Games]-[Setup]-[Android setup], GooglePlayGamesPluginDependencies.xml was automatically corrected and the error disappeared.
However, when I run the Sample [Achievements]-[Ach ShowUI], the following error occurs.

SmokeTest.AchievementGUI:OnGUI()
AndroidJavaException: java.lang.ClassNotFoundException: com.google.games.bridge.HelperFragment
java.lang.ClassNotFoundException: com.google.games.bridge.HelperFragment
	at java.lang.Class.classForName(Native Method)
	at java.lang.Class.forName(Class.java:607)
	at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
	at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0)
	at com.unity3d.player.G0.handleMessage(Unknown Source:122)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at com.unity3d.player.H0.run(Unknown Source:24)
Caused by: java.lang.ClassNotFoundException: com.google.games.bridge.HelperFragment
	at java.lang.Class.classForName(Native Method) 
	at java.lang.Class.forName(Class.java:607) 
	at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 
	at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0) 
	at com.unity3d.player.G0.handleMessage(Unknown Source:122) 
	at android.os.Handler.dispatchMessage(Handler.java:102) 
	at android.os.Looper.loopOnce(Looper.java:205) 
	at android.os.Looper.loop(Looper.java:294) 
	at com.unity3d.player.H0.run(Unknown Source:24) 
  at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.AndroidJavaClass._AndroidJavaClass (Sys
 [Play Games Plugin 0.11.01] 11/16/24 18:06:41 +09:00 DEBUG: ShowAchievementsUI callback is 
GooglePlayGames.OurUtils.PlayGamesHelperObject:Update()

The steps are as follows:

  1. Create new Project: Launch on [Windows,Mac,Linux].
  2. Add GooglePlayGamesPlugin-0.11.01.unitypackage via Assets > Import Package > Custom Package...
  3. Delete External Dependency Manager folder under the Assets folder.
  4. Add external-dependency-manager-1.2.183.unitypackage via Assets > Import Package > Custom Package...
  5. Unity MenuBar [File]-[Build Settings] Select Android.
  6. Select [Switch Platform].
  7. [Enable Android Auto-resolution]: Select Enable.
  8. The [Google Version Handler] dialog will appear. Select Apply.
  9. Unity MenuBar [Windows]-[Google Play Games]-[Setup]-[Android setup]:[Resources Definition] settings
  10. [Set Bundle Identifier] dialog will appear. Select OK.
  11. Select Unity MenuBar [File]-[Build Settings]-[Player Settings]
    [Orther Settings]
    [Minimum API Level] : [Android 7.0 API Level 24].
    [Scripting Backend] : IL2CPP
    [Target Architectures]: Check ARMv64
    [Publish Settings]
    I set [Project Keystore] and [Project Key].
  12. Run Assets > External Dependency Manager > Android Resolver > Resolve.
  13. Run Assets > External Dependency Manager > Android Resolver > Force Resolve.
  14. Run [File]-[Build Setting]-[Build]

However, if you manually change the path in \Assets\Plugins\Android\settingsTemplate.gradle as follows, it seems to work correctly.
url (unityProjectPath + "/Assets/GeneratedLocalRepo/GooglePlayGames/com.google.play.games/Editor/m2repository")

Best Regards
crSudo

argzdev

argzdev commented on Nov 26, 2024

@argzdev
Collaborator

Yeah, I'm not entirely sure why that's happening. I do see similar issues in the play-games-plugin-for-unity repository, which is resolved by the solution you've provided. Now, I'm not sure if the change has to be done on our EDM4U or in the Play Games Plugin for Unity repository. I'll bring this up to our engineers and see if they have some feedback.

crSudo

crSudo commented on Nov 27, 2024

@crSudo
Author

Thank you for your reply, @argzdev .

I'll bring this up to our engineers and see they have some feedback.

I understand. Please continue your investigation.

Best Regards
crSudo

harsodakrunal

harsodakrunal commented on Dec 5, 2024

@harsodakrunal

GeneratedLocalRepo

Thanks a lot, I fixed the same error with this solution.

sandolkakos

sandolkakos commented on Dec 11, 2024

@sandolkakos

It took me hours to get my project to work again, and I still don't know exactly what the issue was.
I've removed everything regarding Google Play Games and External Dependency Manager, and added again manually using the package: GooglePlayGamesPlugin-2.0.0.unitypackage, and then after resolving all the dependencies, it started working again.

crSudo

crSudo commented on Jan 9, 2025

@crSudo
Author

Thank you for your reply, @sandolkakos .

I tried GooglePlayGamesPlugin-2.0.0.unitypackage.
As expected, problems occur when updating to external-dependency-manager-1.2.183.

I use [Firebase] and [GoogleMobileAds].
These libraries use external-dependency-manager-1.2.183, so I would like to use the latest version.

GooglePlayGamesPlugin-2.0.0 seems to have fixed the problem with GooglePlayGamesPluginDependencies.xml.
However, external-dependency-manager 1.2.182 is still being used.

Best Regards
crSudo

removed their assignment
on Feb 19, 2025
mikeohuo

mikeohuo commented on Mar 21, 2025

@mikeohuo

This issue is still persistent with a lot of .srcaar's in Unity 6000.0.34f1 @argzdev with EDM4U 1.2.185.

With Use Full Custom Local Maven Repo Path --> Building Android App Through Unity checked or unchecked, a force resolve with EDM4U will always fail to point to the new location of the unpacked .aar in GeneratedLocalRepo/<DependencyName>/m2repository.... and instead point to the source repo location where the .srcaar is located in.

This causes the aab/apk to be built without the needed .aar

Examples below for the unchecked Use Full Custom Local Maven Repo Path --> Building Android App Through Unity

Affected GoogleSignInSupportDependencies.xml:

<dependencies>
<!-- Internal library dependency generated at build time. -->
  <androidPackages>
    <androidPackage spec="com.google.signin:google-signin-support:1.0.4">
      <repositories>
        <repository>Assets/GoogleSignIn/Editor/m2repository</repository>
      </repositories>
    </androidPackage>
  </androidPackages>
</dependencies>

Resulting snippet in settingsTemplate.gradle:

maven {
            url (unityProjectPath + "/Assets/GoogleSignIn/Editor/m2repository") // Assets/GoogleSignIn/Editor/GoogleSignInSupportDependencies.xml:9
        }

Functional (Firebase) AnalyticsDependencies.xml:

<dependencies>
  <iosPods>
    <iosPod name="Firebase/Analytics" version="10.15.0" minTargetSdk="8.0">
    </iosPod>
  </iosPods>
  <androidPackages>
    <androidPackage spec="com.google.firebase:firebase-analytics:21.3.0">
    </androidPackage>
    <androidPackage spec="com.google.firebase:firebase-analytics-unity:11.5.0">
      <repositories>
        <repository>Assets/Firebase/m2repository</repository>
      </repositories>
    </androidPackage>
  </androidPackages>
</dependencies>

Resulting snippet in settingsTemplate.gradle:

        maven {
            url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/AuthDependencies.xml:20, Assets/Firebase/Editor/MessagingDependencies.xml:24
        }

Do you have any recommended fixes other than needing to manually edit settingsTemplate.gradle each time a Force Resolve happens?

JeffreyLeeExient

JeffreyLeeExient commented on Mar 28, 2025

@JeffreyLeeExient

I think the problem with EDM4U 1.283+ placing the wrong path in settingsTemplate.gradle is due to a discrepancy in how path remapping has been implemented in different pats of GradleTemplateResolver. The path remapping logic when copying the .srcaar's is different to the logic that's used when writing the settings template.

If you look at what was changed in f68ab8a then you'll see that CopySrcAars only calls ReplaceLocalFolderBasedOnM2repo if ReplaceBaseAssetsOrPackagesFolder failed to remap the path. But in GradleMavenReposLinesFromDependencies, ReplaceLocalFolderBasedOnM2repo is always called, which can result in the paths being remapped twice, breaking them in the process.

E.g. the example which is breaking things for us:

  • GooglePlayGames specifies Assets/GooglePlayGames/Editor/m2repository in its dependencies.xml
  • ReplaceBaseAssetsOrPackagesFolder will remap that to the correct path of Assets/GeneratedLocalRepo/GooglePlayGames/Editor/m2repository
  • ReplaceLocalFolderBasedOnM2repo will then remap that to Assets/GeneratedLocalRepo/Editor/m2repository because it strips out everything except the immediate parent of the m2repository folder
  • GradleMavenReposLinesFromDependencies then goes "wait, that folder doesn't exist!" and resets it back to the original path from the dependencies.xml (Assets/GooglePlayGames/Editor/m2repository), which is what we're seeing in our settingsTemplate

Updating GradleMavenReposLinesFromDependencies to add an if(!repoPath.StartsWith(GooglePlayServices.SettingsDialog.LocalMavenRepoDir))) check around the call to ReplaceLocalFolderBasedOnM2repo (as per CopySrcAars) seems like it would fix it.

crSudo

crSudo commented on Jul 4, 2025

@crSudo
Author

Hello @argzdev.

※Sorry. I'm contacting you here because I haven't received any response to the play-games-plugin-for-unity issue I posted about a different matter.
If you have another way to contact me, please let me know.

It's been about seven months since then.
Has there been any progress since then?

I tried changing the folder structure to the same as Firebase, and it now works properly.
Would you consider doing that?

■Here are the steps:
◇Step 1 : Import process

  1. Create new Project: Launch on [Windows,Mac,Linux].
  2. Add GooglePlayGamesPlugin-2.0.0.unitypackage via Assets > Import Package > Custom Package...
  3. Delete External Dependency Manager folder under the Assets folder.
  4. Add external-dependency-manager-1.2.186.unitypackage via Assets > Import Package > Custom Package...
  5. Add SmokeTest.unitypackage via Assets > Import Package > Custom Package...
  6. Add TestScene.unity to [File]-[Build Setting]-[Scene In Build].
  7. Unity MenuBar [File]-[Build Settings] Select Android.
  8. Select [Switch Platform].
  9. [Assets > External Dependency Manager] is not displayed, so restart Unity. *Please restart twice.
  10. [Enable Android Auto-resolution]: Select Enable.
  11. The [Google Version Handler] dialog will appear. Select Apply.
  12. Unity MenuBar [Windows]-[Google Play Games]-[Setup]-[Android setup]:[Resources Definition] settings
  13. [Set Bundle Identifier] dialog will appear. Select OK.
  14. Select Unity MenuBar [File]-[Build Settings]-[Player Settings]
    [Orther Settings]
    [Minimum API Level] : [Android 7.0 API Level 24].
    [Scripting Backend] : IL2CPP
    [Target Architectures]: Check ARMv64
    [Publish Settings]
    I set [Project Keystore] and [Project Key].
  15. Run Assets > External Dependency Manager > Android Resolver > Resolve.
  16. Run Assets > External Dependency Manager > Android Resolver > Force Resolve.

◇Step 2 : Modify the source

  1. Move all files in Assets\GooglePlayGames\com.google.play.games to Assets\GooglePlayGames.

  2. Delete the empty Assets\GooglePlayGames\com.google.play.games folder.

  3. Move Assets\GooglePlayGames\Editor\m2repository to Assets\GooglePlayGames.

  4. Open \Assets\GooglePlayGames\Editor\GooglePlayGamesPluginDependencies.xml in a text editor and change the following:
    Assets/GooglePlayGames/com.google.play.games/Editor/m2repository

    Assets/GooglePlayGames/m2repository

  5. Open \Assets\GooglePlayGames\Editor\GooglePlayGamesPlugin_v2.0.0.txt in a text editor and change the following:
    Delete com.google.play.games.

    For example:
    Assets/GooglePlayGames/com.google.play.games/Runtime/Google.Play.Games.asmdef

    Assets/GooglePlayGames/Runtime/Google.Play.Games.asmdef

  6. Open \Assets\GooglePlayGames\Editor\GPGSUtil.cs in a text editor and change the following:
    private const string RootFolderName = "com.google.play.games";

    private const string RootFolderName = "GooglePlayGames";

◇Step 3 : Build

  1. Run [File]-[Build Setting]-[Build]

Best Regards
crSudo

sandolkakos

sandolkakos commented on Jul 4, 2025

@sandolkakos

hey @crSudo, since my last post I've not updated my project with newer GooglePlayGamesPlugin or External Dependency Manager version since the version I'm using was always doing what I needed.

Do you just want to know if your steps will work fine on my environment?

crSudo

crSudo commented on Jul 7, 2025

@crSudo
Author

hey @crSudo, since my last post I've not updated my project with newer GooglePlayGamesPlugin or External Dependency Manager version since the version I'm using was always doing what I needed.

Do you just want to know if your steps will work fine on my environment?

Sorry @sandolkakos. I misspelled your name. I've corrected it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sandolkakos@JamesKim2998@StefanMilkov@google-oss-bot@crSudo

        Issue actions

          [Bug] EDM4U 1.2.183: Error occurs in GooglePlayGamesPlugin · Issue #716 · googlesamples/unity-jar-resolver