Search Unity

Problem to compile android version with facebook SDK

Discussion in 'Formats & External Tools' started by Schumaker, Jun 15, 2017.

  1. Schumaker

    Schumaker

    Joined:
    Jul 14, 2016
    Posts:
    40
    Hello,
    I'm receiving 2 erros during my compilation, and the erros are:

    Frist:
    1: [Unity] Initialize engine version: 5.6.0f3 (497a0f351392)
    2: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll
    3: [Unity] Compilation failed: 1 error(s), 0 warnings
    4: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    5: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    6: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    7: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    8: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    9: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    10: [Unity] Compilation failed: 1 error(s), 0 warnings

    Second:
    [Unity] Found plugins with same names and architectures, Assets/FacebookSDK/Plugins/Android/libs/appcompat-v7-23.4.0.aar () and Assets/Plugins/Android/libs/appcompat-v7-23.4.0.aar (). Assign different architectures or delete the duplicate.
    35: [Unity] Player export failed. Reason: 2 errors
    36: ! build of 'default-android' failed. compile failed
    37: publishing finished successfully.
    38: Finished: FAILURE

    any tips?

    regards.
     
  2. Schumaker

    Schumaker

    Joined:
    Jul 14, 2016
    Posts:
    40
    I redid the process to install the facebook sdk with the lastest version facebook-unity-sdk-7.9.4 and now a got the follow erros, but the strange thing is: in the editor works great, I get logged in with the mock login screen.
    the erros:

    [Unity] Initialize engine version: 5.6.0f3 (497a0f351392)
    2: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll
    3: [Unity] Compilation failed: 1 error(s), 0 warnings
    4: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    5: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    6: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    7: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    8: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    9: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)

    and the second:

    [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Assembly-CSharp-firstpass.dll
    17: [Unity] Compilation failed: 1 error(s), 0 warnings
    18: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    19: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    20: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    21: [Unity] error CS1704: An assembly with the same name `Facebook.Unity.Settings' has already been imported. Consider removing one of the references or sign the assembly
    22: [Unity] Library/FacebookSDK/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)
    23: [Unity] Assets/FacebookSDK/Plugins/Settings/Facebook.Unity.Settings.dll (Location of the symbol related to previous error)

    regard,
    Hudson Schumaker
    Schumaker Team
     
  3. Schumaker

    Schumaker

    Joined:
    Jul 14, 2016
    Posts:
    40
    Nothing working yet ... ,but I guess I have found the problem, reading the full log I saw these:

    731: [Unity] Facebook.Unity.dll (Extension) GUID: 2403d1f95ea54028853403e595bc9274
    732: [Unity] Facebook.Unity.Arcade.dll (Extension) GUID: bb6b4101ad2c42ec99f064a70c354e3c
    733: [Unity] Facebook.Unity.Settings.dll (Extension) GUID: 18b4dbf8a0b54ea4adf46fb7f4d71dd0
    734: [Unity] FacebookNamedPipeClient.dll (Extension) GUID: 51288a4fc4384861a5b1f9dd49b3da26
    735: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    736: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    737: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/Facebook.Unity.Arcade.dll' because we're compiling for Editor:Editor
    738: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/FacebookNamedPipeClient.dll' because we're compiling for Editor:Editor
    739: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    740: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    741: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    742: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    743: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/Facebook.Unity.Arcade.dll' because we're compiling for Editor:Editor
    744: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/FacebookNamedPipeClient.dll' because we're compiling for Editor:Editor
    745: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    746: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    747: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    748: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Android/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    749: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/Facebook.Unity.Arcade.dll' because we're compiling for Editor:Editor
    750: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/Arcade/FacebookNamedPipeClient.dll' because we're compiling for Editor:Editor
    751: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.Android.dll' because we're compiling for Editor:Editor
    752: [Unity] Ignoring 'Assets/FacebookSDK/Plugins/iOS/Facebook.Unity.IOS.dll' because we're compiling for Editor:Editor
    753: [Unity] - starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll, for buildtarget 13


    it is look like the compiler of the cloud building is trying to work dor the editor not to android target.

    how to fix that?
     
  4. Schumaker

    Schumaker

    Joined:
    Jul 14, 2016
    Posts:
    40
    Hello,
    Now I'm getting error on the login screen of my app. Used the of the facebook developer page