googlesamples / unity-jar-resolver

Unity plugin which resolves Android & iOS dependencies and performs version management
Other
1.25k stars 343 forks source link

Unable to copy assets etc at: GooglePlayServices.PlayServicesResolver.CopyAssetAndLabel #492

Closed oddgames-david closed 2 years ago

oddgames-david commented 2 years ago

[REQUIRED] Please describe the issue here:

Receiving the following error randomly on multiple build serveres:

[Error] Unable to copy Assets\Firebase\m2repository\com\google\firebase\firebase-analytics-unity\8.7.0\firebase-analytics-unity-8.7.0.srcaar to Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-analytics-unity\8.7.0\firebase-analytics-unity-8.7.0.aar. Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-analytics-unity\8.7.0\firebase-analytics-unity-8.7.0.aar will not be included in Gradle builds. Reason: Cannot label Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-analytics-unity\8.7.0\firebase-analytics-unity-8.7.0.aar properly. [Error] Unable to copy Assets\Firebase\m2repository\com\google\firebase\firebase-app-unity\8.7.0\firebase-app-unity-8.7.0.srcaar to Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-app-unity\8.7.0\firebase-app-unity-8.7.0.aar. Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-app-unity\8.7.0\firebase-app-unity-8.7.0.aar will not be included in Gradle builds. Reason: Cannot label Assets\GeneratedLocalRepo\Firebase\m2repository\com\google\firebase\firebase-app-unity\8.7.0\firebase-app-unity-8.7.0.aar properly. [Error] Unable to copy Assets\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.srcaar to Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar. Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar will not be included in Gradle builds. Reason: Failed to copy Assets\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.srcaar to Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar due to System.IO.DirectoryNotFoundException: Destination directory not found: Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00162] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at GooglePlayServices.PlayServicesResolver.CopyAssetAndLabel (System.String sourceLocation, System.String targetLocation, System.Boolean force) [0x0009e] in Z:\tmp\tmp.cvthQg1D2s\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\PlayServicesResolver.cs:2467 [Error] Resolution Failed.

Unable to copy Assets\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.srcaar to Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar. Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar will not be included in Gradle builds. Reason: Failed to copy Assets\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.srcaar to Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13\gpgs-plugin-support-0.10.13.aar due to System.IO.DirectoryNotFoundException: Destination directory not found: Assets\GeneratedLocalRepo\GooglePlayGames\Editor\m2repository\com\google\games\gpgs-plugin-support\0.10.13 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00162] in <695d1cc93cca45069c528c15c9fdd749>:0 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 at GooglePlayServices.PlayServicesResolver.CopyAssetAndLabel (System.String sourceLocation, System.String targetLocation, System.Boolean force) [0x0009e] in Z:\tmp\tmp.cvthQg1D2s\third_party\unity\unity_jar_resolver\source\AndroidResolver\src\PlayServicesResolver.cs:2467 [Assert] Assertion failed on expression: 'newChildren.size() == numChildren - 1' [Error] Error building Player: 4 errors

Please answer the following, if applicable:

What's the issue repro rate? 30%

What happened? How can we make the problem occur?

I don't have any clue how to make it happen, I re-run the build a few times and eventually it works

google-oss-bot commented 2 years ago

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

paulinon commented 2 years ago

Hi @oddgames-david,

In order to identify what's causing this, could you provide a minimal, reproducible example of your implementation along with the complete steps performed before facing the issue?

google-oss-bot commented 2 years ago

Hey @oddgames-david. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 2 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@oddgames-david if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.