- Home /
Importing Google Play Services gives a FileNotFoundException
I've been trying to implement google play services into my game for about 3 days now. I kept running into errors and I managed to get past all of them. However for whatever reason now I have an error that literally no one seems to have an answer for, well at least one that works that is. I've tried re-importing/i've updated everything in the android sdk that it requires/ive tried using resolve client jars but I keep getting an error in the console when I import and press play in the editor. Any help would be greatly appreciated as I have no idea what is going wrong.
Using unity 5.3.4f1 Errors:
FileNotFoundException: Could not load file or assembly 'GooglePlayServices' or one of its dependencies. The system cannot find the file specified. System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/AppDomain.cs:746) System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/AppDomain.cs:733) (wrapper remoting-invoke-with-check) System.AppDomain:Load (string,System.Security.Policy.Evidence) System.Reflection.Assembly.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:584) System.Activator.CreateInstance (System.String assemblyName, System.String typeName, Boolean ignoreCase, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Security.Policy.Evidence securityInfo) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:170) System.Activator.CreateInstance (System.String assemblyName, System.String typeName, System.Object[] activationAttributes) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:158) System.Activator.CreateInstance (System.String assemblyName, System.String typeName) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Activator.cs:150) GooglePlayServices.PlayServicesResolver.get_Resolver () (at assets/PlayServicesResolver/Editor/PlayServicesResolver.cs:96) GooglePlayServices.PlayServicesResolver.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths) (at assets/PlayServicesResolver/Editor/PlayServicesResolver.cs:115) System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115) UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at C:/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:27) UnityEditor.AssetDatabase:Refresh() GooglePlayGames.Editor.GPGSUpgrader:.cctor() (at assets/GooglePlayGames/Editor/GPGSUpgrader.cs:107) UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])
Followed by this error:
UnityEditor.AssetDatabase:Refresh() GooglePlayGames.Editor.GPGSUpgrader:.cctor() (at assets/GooglePlayGames/Editor/GPGSUpgrader.cs:107) UnityEditor.EditorAssemblies:SetLoadedEditorAssemblies(Assembly[])
i think that the correct place for this problem is Play Games Services Plugin For Unity
Ya I didn't know that even existed.
https://github.com/playgameservices/play-games-plugin-for-unity/issues/1119
Answer by LeslieM · Apr 21, 2016 at 07:23 AM
I got the same error. How I got mine working again was by removing the Library folder and opening unity again. Unity rebuild its library. I then switched to Android platform and it worked again.
It turns out this solution got rid of the last error I had but not the first error. FileNotFoundExeption is still my issue
Your answer
![](https://koobas.hobune.stream/wayback/20220612075252im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Game not correctly configured to use google play game services 0 Answers
Android - Error building Player: CommandInvokationFailure: Failed to re-package resources 0 Answers
Spammed with NullReference error because of Google Play Services 0 Answers
Problem with Google Play Game Services: Invalid Classname 1 Answer