Facebook.Unity.Gameroom.dll was not registered
Whenever I launch Unity, I get the following error:
Assertion failed: Extension Library/FacebookSDK/Facebook.Unity.Gameroom.dll was not registered, that means it relies on default UnityExtensions settings, please register extension and apply necessary settings for it in the callback.
I tried deleting the Library folder but the problem is still there and the file Facebook.Unity.Gameroom.dll also exists.
Also when I try to build for WebGL, 3 more errors are shown and build fails. The first one is as follows:
ArgumentException: The Assembly Facebook.Unity is referenced by Facebook.Unity.Gameroom ('Library/FacebookSDK/Facebook.Unity.Gameroom.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
UnityEditor.HostView:OnGUI()
How can I solve this?
I'm having the same error. It started after I committed Facebook SD$$anonymous$$ support. Then I reverted the change and the problem still appears. Some fossiles of FB SD$$anonymous$$ still remains in Library apparently. It builds fine in my dev environment though. Looks like a cleanup problem in Cloud Build only, in between builds. I would have thought Cloud Build resets the all source folder before each build. Is there a way to do that ?
Answer by wjomlex · Oct 14, 2017 at 11:15 PM
I'm having the same problem. I reinstalled Unity without Gameroom support, but I still get this error in Cloud Build:
ArgumentException: The Assembly Facebook.Unity is referenced by Facebook.Unity.Gameroom ('Library/FacebookSDK/Facebook.Unity.Gameroom.dll'). But the dll is not allowed to be included or could not be found.
Is there a way to just remove Gameroom support? I'm not even using it. I tried deleting my Library folder and .csproj and .sln files and rebuilding everything, but Cloud Build still complains about this .dll, even though the .csproj files no longer have a reference to it.
I eventually just reverted my project back to the commit before I added Gameroom and it was fine.
Answer by ninuxw · Oct 07, 2017 at 05:32 PM
Anyone? I am having this issue too :(
Can you up vote this question? That might catch more attention.
Just did. Had to reinstall unity without FB as my regular builds would not work :(
Answer by dooleydragon · Apr 09, 2018 at 10:49 PM
@NafisKhan I was getting the same error don't know if this will helps anyone out there..
If you upgraded to the newest SDK for facebook from the player setttings revert back to the version that you currently had after you downloaded the FaceBook compiler for Unity.
You can also check what SDK versions you have by going to this folder: UnityInstallationDir]/Editor/Data/PlaybackEngines/Facebook/SDK (You may find this version 7.9.4 if that is the only SDK in there select it.)
you can go to this site:https://developers.facebook.com/docs/unity/downloads to download the latest FB SDK for Unity.
Lastly, I changed my target platform by pressing Crtl+Shift+B and under the Facebook build settings you can change it from GameRoom(Windows) to WebGL.
That's it! should work...
Thanks a lot for your response and I will confirm after it's worked or not worked for me :)
Answer by bluemike · Oct 19, 2017 at 05:00 PM
Note that as a simple workaround for the problem I created a copy of the cloud build config, and it worked. It's an easy way to make sure there is no leftovers from previous build.
Answer by ponx · Nov 08, 2017 at 06:41 PM
in "[UnityInstallationDir]/Editor/Data/PlaybackEngines" rename the "facebook" folder to something else, so that it will not be found by Unity upon start.
In your Project sourcecode make sure to put every line of "using Facebook.Unity" in compile tags, like this
List item
#if UNITY_FACEBOOK
using Facebook.Unity;
#endif
Hope this helps (it did in my case). cheers, ponx
Hello,
I just did that, closed Unity and reopened but still get the same error and I am using Unity 2017.2.0f3. Please let me know if I missed anything
Thanks & Regards, Bhanu