- Home /
Facebook SDK import error
I'm so tired of all these messed up Android libraries
When importing official .unitypackage in the EMPTY Android project I'm getting an error:
ArgumentNullException: Value cannot be null.
Parameter name: path
System.IO.Directory.CreateDirectory (System.String path) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
GooglePlayServices.PlayServicesResolver.ResolveUnsafe (System.Action`1[T] resolutionComplete, System.Boolean forceResolution) (at <b9f185c2500349039a6d9277103bac8a>:0)
GooglePlayServices.PlayServicesResolver+<Resolve>c__AnonStorey11.<>m__19 () (at <b9f185c2500349039a6d9277103bac8a>:0)
GooglePlayServices.PlayServicesResolver.ExecuteNextResolveJob () (at <b9f185c2500349039a6d9277103bac8a>:0)
GooglePlayServices.PlayServicesResolver.Resolve (System.Action resolutionComplete, System.Boolean forceResolution, System.Action`1[T] resolutionCompleteWithResult) (at <b9f185c2500349039a6d9277103bac8a>:0)
GooglePlayServices.PlayServicesResolver.AutoResolve () (at <b9f185c2500349039a6d9277103bac8a>:0)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/Editor/Mono/EditorApplication.cs:191)
Before this error comes the warning:
Resolving to Android package directory instead of the requested target directory Assets/Plugins/Android
Is in a different case to Assets/Plugins/Android ?
UnityEngine.Debug:LogWarning(Object)
Google.Logger:Log(String, LogLevel)
GooglePlayServices.PlayServicesResolver:Log(String, LogLevel)
GooglePlayServices.SettingsDialog:ValidatePackageDir(String)
GooglePlayServices.SettingsDialog:get_PackageDir()
GooglePlayServices.PlayServicesResolver:ResolveUnsafe(Action`1, Boolean)
GooglePlayServices.<Resolve>c__AnonStorey11:<>m__19()
GooglePlayServices.PlayServicesResolver:ExecuteNextResolveJob()
GooglePlayServices.PlayServicesResolver:Resolve(Action, Boolean, Action`1)
GooglePlayServices.PlayServicesResolver:AutoResolve()
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
It also doesn't build an .apk.
When platform is set to PC, everything is importing fine.
I'm using unity 2018.2 and the latest Facebook SDK 7.13.0
What's that all about? How can I fix that?
Answer by Romaleks360 · Jul 22, 2018 at 12:41 PM
Ok I did it somehow
Not sure what helped - either installing the Facebook Gameroom from the unity installer (most likely) or updating Play Services Resolver
For the last option, you should completely remove PlayServicesResolver folder in your Assets, download the .unitypackage file from GitHub (https://github.com/googlesamples/unity-jar-resolver) and install it, then in menu Assets->Play Services Resolver->Android Resolver click Force Resolve
Thanks! I had the same issue and this resolved it!
Your answer
Follow this Question
Related Questions
Game Analytics & Facebook sdk android build error 1 Answer
Assets/scripts/fbLogin.cs(60,52): error CS1501: No overload for method `API' takes `3' arguments 1 Answer
Weird bug that only seems to happen on Android 1 Answer
can't build android app with facebook sdk 5 Answers
Facebook Android Studio 0 Answers