导入Google Play服务插件:“找不到路径的一部分"异常 [英] Importing Google play services plugin: `Could not find a part of the path` exception

查看:119
本文介绍了导入Google Play服务插件:“找不到路径的一部分"异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我统一导入Google Play服务插件时,它给了我一个错误:

When I import the google play services plugin for unity it gives me an error:

Could not find a part of the path  
"C:\ExternalWork\Island\Assets\GooglePlayGames\Plugins\Android\GooglePlayGamesManifest.plugin\AndroidManifest.xml".

这是完整的堆栈跟踪:

System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\ExternalWork\Island\Assets\GooglePlayGames\Plugins\Android\GooglePlayGamesManifest.plugin\AndroidManifest.xml".
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001be] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:292 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00039] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamWriter.cs:124 
  at System.IO.StreamWriter..ctor (System.String path, Boolean append) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool)
  at GooglePlayGames.Editor.GPGSUtil.WriteFile (System.String file, System.String body) [0x0000b] in C:\ExternalWork\Island\Assets\GooglePlayGames\Editor\GPGSUtil.cs:192 
  at GooglePlayGames.Editor.GPGSUtil.GenerateAndroidManifest () [0x0007e] in C:\ExternalWork\Island\Assets\GooglePlayGames\Editor\GPGSUtil.cs:479 
  at GooglePlayGames.Editor.GPGSUpgrader..cctor () [0x0018a] in C:\ExternalWork\Island\Assets\GooglePlayGames\Editor\GPGSUpgrader.cs:111 
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

推荐答案

我遇到了相同的错误.我通过以下步骤重新导入来修复了该问题:

I was having the same error. I fixed it by reimporting with these steps:

  1. 删除Assets/PlayServicesResolver和Assets/GooglePlayGames文件夹.
  2. 重新启动Unity.
  3. 再次导入最新版本的插入: https://github.com/playgameservices/玩为单位的游戏插件/blob/master/current-build
  4. 窗口-> Google Play游戏->设置-> Android安装...(按照说明在此处执行您的个人设置)

我尝试了这种相同的方法,而没有在第2点中重新启动Unity,并且没有用,所以请确保您执行了这一点.希望对您有帮助.

I tried this same approach without restarting Unity in point 2) and didn't work, so be sure you do this point. I hope this will help you.

这篇关于导入Google Play服务插件:“找不到路径的一部分"异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆