-
Notifications
You must be signed in to change notification settings - Fork 348
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] EDM4U 1.2.183: Error occurs in GooglePlayGamesPlugin #716
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
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 |
The title was left blank so we added it. |
WORKAROUND: To this: |
+1 |
Hey @crSudo. Thanks for reaching out. I believe this step:
Will cause an issue, since "copying" would likely result to dependencies not being imported correctly. Have you tried importing the ED4MU via Thanks for suggesting workarounds, instead of manually changing the maven path. You may enable this under the That said, on my testing so far I'm unable to reproduce the behavior. Here's what I did:
Let me know if these work. |
Thank you for your reply. I tried to build it using the method you instructed, but an error occurred.
I fixed the following warning, but an error still occurred.
The following error occurred:
When I looked at \Assets\Plugins\Android\settingsTemplate.gradle Best Regards |
Thanks for the extra details, @crSudo. The stacktrace seems to point to a lower version of AGP. I have a hunch that this could be due to using a lower version of Unity Editor likely resulting to a faulty AGP and Gradle. Could you try using the latest version of Unity Editor
For context, we've resolved issues before where a higher version of Unity Editor is needed since it uses a more stable version matrix of Gradle and AGP. Let me know if it works. Thanks! |
@argzdev ■Unity Update Verification I also fixed \Assets\GooglePlayGames\com.google.play.games\Editor\GooglePlayGamesPluginDependencies.xml.
■About GooglePlayGamesPluginDependencies.xml *Assets/GeneratedLocalRepo is not created. GooglePlayGamesPluginDependencies.xml is set as Packages/com.google.play.games/Editor/m2repository. Best Regards |
@argzdev
◇Firebase download site ■Regarding external-dependency-manager-1.2.182
\Assets\GooglePlayGames\com.google.play.games\Editor\GooglePlayGamesPluginDependencies.xml
I checked \Assets\Plugins\Android\settingsTemplate.gradle and it specified the GeneratedLocalRepo folder.
Best Regards |
Thanks for the additional information, @crSudo. Yes, there were changes made in version However, I'm not sure if I understand correctly. So if you use this setup with version In my testing, there was no need to do:
It automatically detects the right path for the repository and works. |
■About GooglePlayGamesPluginDependencies.xml Have you set the GitHub URL or anything in Unity Package Manager? ■About Unity 6000.0.25f1 Best Regards |
I have not tried adding GooglePlayGames via UPM. I only followed through the guide on the official website. The official guide uses the .unitypackage file in the current-build directory. I was able to reproduce your issue now. You're using Minimum API level at Let me know if it works. Thanks! |
@argzdev
Also, when you run [Build], the error is as follows:
■ Regarding Internet searches ◇GooglePlayGamesPluginDependencies.xml modified Best Regards |
This is a different issue, @crSudo. I tested with Unity From your stacktrace:
It seems to be a configuration issue on your side. Which you likely need to update your CLI tools. That said, I believe we have resolved the initial problem of your issue. Could you try your setup with Unity Editor version |
I used Unity 2022.3.52f1 and set the Minimum API Level to 24, but an error was output.
Also, Assets/GeneratedLocalRepo is not created.
When I check the console, the output is as follows:
Best Regards |
@crSudo, this new error:
is now resolvable with the fix you've provided earlier. Which is changing: Also enabling the previous steps I mentioned earlier will also resolve this issue:
|
Thank you.
I tried using external-dependency-manager-1.2.182.unitypackage and it worked correctly. The environment is: Best Regards |
Regarding minSdkVersion, external-dependency-manager-1.2.182 seems to work properly even with the default value of Android 5.1 API level 22. Best Regards |
Thanks for confirming, @crSudo. Does it not work with For your new issue, could you file it in the Play Games repository. They'll be able to assist you better with issues specific to their SDK. Thanks! |
Yes. I am creating the environment using the method you instructed below.
I also checked [When building Android app through Unity] in [Android Resolver Settings], but an error still occurs. Best Regards |
I verified further. I changed the following line in \Assets\Plugins\Android\settingsTemplate.gradle and it worked correctly. It seems like the path setting process is the problem, what do you think? Best Regards |
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.
The steps are as follows:
However, if you manually change the path in \Assets\Plugins\Android\settingsTemplate.gradle as follows, it seems to work correctly. Best Regards |
[REQUIRED] Please fill in the following fields:
[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.
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%
The text was updated successfully, but these errors were encountered: