question

johndose avatar image
johndose asked

About Unicorn Battle

I open Unicorn battle example in 2018.2.5f1, it show these error

App - support-v4:25.3.1
UnityEngine.Debug:LogWarning(Object)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:addSupportLibraryDepenency(Object, String, String)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:setupDependencies()
Facebook.Unity.Editor.AndroidSupportLibraryResolver:.cctor()
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

App - appcompat-v7:25.3.1
UnityEngine.Debug:LogWarning(Object)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:addSupportLibraryDepenency(Object, String, String)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:setupDependencies()
Facebook.Unity.Editor.AndroidSupportLibraryResolver:.cctor()

App - cardview-v7:25.3.1
UnityEngine.Debug:LogWarning(Object)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:addSupportLibraryDepenency(Object, String, String)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:setupDependencies()
Facebook.Unity.Editor.AndroidSupportLibraryResolver:.cctor()

App - customtabs:25.3.1
UnityEngine.Debug:LogWarning(Object)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:addSupportLibraryDepenency(Object, String, String)
Facebook.Unity.Editor.AndroidSupportLibraryResolver:setupDependencies()
Facebook.Unity.Editor.AndroidSupportLibraryResolver:.cctor()
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

error CS1704: An assembly with the same name `Facebook.Unity.Android' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name `Facebook.Unity.IOS' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll (Location of the symbol related to previous error)

error CS1704: An assembly with the same name `Facebook.Unity.Android' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name `Facebook.Unity.IOS' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll (Location of the symbol related to previous error)

error CS1704: An assembly with the same name `Facebook.Unity.Android' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll (Location of the symbol related to previous error)
error CS1704: An assembly with the same name `Facebook.Unity.IOS' has already been imported. Consider removing one of the references or sign the assembly
Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll (Location of the symbol related to previous error)

How can I solve these error?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JayZuo avatar image
JayZuo answered

It seems there are some issues with imported FacebookSDK. You can try to re-import the sdk to solve this issue. In "Assets", right click and select "Import Package" > "Custom Package..." and then select the "facebook-unity-sdk-7.10.0.unitypackage" in UnicornBattle repo. After re-importing, these errors should be solved.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.