System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\Users\panay\Desktop\Unity Projects\The Adventures Of a RubberBall\Assets\GooglePlayGames\Plugins\Android\GooglePlayGamesManifest.plugin\AndroidManifest.xml".
This is the error i get ever since i updated the plugin from 0.9.40, to 0.9.41.
And i do think that it's important to update the damn plugin because last time i didn't and google had updated stuff on their end, i had issues.
The AndroidManifest moved from Plugins/Android/MainLibs to the path displayed above. Check if your AndroidManifest is in there.
Nope. Don't have any of those folders. Guess i'll try to restore the GPGS manifest from a previous backup and manually make the folder it wants and put it there.
@ScreennameTaken I had the same problem upgrading from 0.9.40 to 0.9.41. I then imported the package for a second time and it went away. It might solve your problem, though there's still definitely a problem with the package so the issue should stay open.
@saiichihashimoto i ended up removing the package and then importing it a second time, and that solved it.
Unfortunately, it is not easy to manage files being moved/removed when a plugin is updated. We are working on incorporating a solution. In the meantime, the best work around as @ScreennameTaken suggested it to delete the GooglePlayGames and Plugins/Android/MainLibs directory and re-import the plugin.
I'll update this thread when the version handling of files is added to the plugin.
Why is this closed? The issue still reproduces in 0.9.61. Exception is thrown from GenerateAndroidManifest() on attempt to create manifest in WriteFile(), because specified parent directory Assets/GooglePlayGames/Plugins/Android/GooglePlayGamesManifest.plugin/ may be missing.
You should create this directory first (safe to do so if directory already exists):
public static void WriteFile(string file, string body)
{
...
DirectoryInfo dir = Directory.GetParent(file);
dir.Create();
...
}
Fixed in #2463
Marked as fixed in CHANGELOG.txt for version 0.9.62, but actual GooglePlayGamesPlugin-0.9.62.unitypackage doesn't seems to have GPGSUtil.cs updated.
Yes, you are right. I've updated CHANGELOG.txt. Will be in v0.9.63.
Most helpful comment
Unfortunately, it is not easy to manage files being moved/removed when a plugin is updated. We are working on incorporating a solution. In the meantime, the best work around as @ScreennameTaken suggested it to delete the GooglePlayGames and Plugins/Android/MainLibs directory and re-import the plugin.
I'll update this thread when the version handling of files is added to the plugin.