Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
9
Question by NafisKhan · Sep 12, 2017 at 12:44 PM · bugwebglbuild-errorfacebookdll error

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?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image bluemike · Oct 19, 2017 at 05:26 AM 0
Share

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 ?

6 Replies

· Add your reply
  • Sort: 
avatar image
6

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image wjomlex · Oct 15, 2017 at 02:15 AM 1
Share

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.

avatar image wjomlex · Oct 19, 2017 at 04:57 PM 0
Share

I eventually just reverted my project back to the commit before I added Gameroom and it was fine.

avatar image
2

Answer by ninuxw · Oct 07, 2017 at 05:32 PM

Anyone? I am having this issue too :(

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NafisKhan · Oct 07, 2017 at 07:36 PM 0
Share

Can you up vote this question? That might catch more attention.

avatar image ninuxw NafisKhan · Oct 07, 2017 at 07:53 PM 0
Share

Just did. Had to reinstall unity without FB as my regular builds would not work :(

avatar image
1

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..


  1. 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.

  2. 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.)

  3. you can go to this site:https://developers.facebook.com/docs/unity/downloads to download the latest FB SDK for Unity.

  4. 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...

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Apr 10, 2018 at 01:23 PM 0
Share

Thanks a lot for your response and I will confirm after it's worked or not worked for me :)

avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ponx · Nov 08, 2017 at 06:41 PM

  1. in "[UnityInstallationDir]/Editor/Data/PlaybackEngines" rename the "facebook" folder to something else, so that it will not be found by Unity upon start.

  2. 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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Nov 16, 2017 at 05:56 PM 0
Share

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

  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

125 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook SDK does not return focus to game canvas after FB purchase popup closed 0 Answers

how to fixe ios probleme in instant game Webgel ? 0 Answers

WebGL build creates an empty folder. 0 Answers

Player moves slower when moving camera in build, but not in editor. 1 Answer

facebook sdk failed to re-package resourses 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges