단일 프로젝트에서 잠재 고객 네트워크 SDK와 페이스 북 SDK를 모두 가져 오면 프로젝트를 빌드하지 못합니다.
패키지 관리자를 사용하여 모든 단일 패키지를 삭제하려고했습니다.
jdk8_11 및 ndk16b 업데이트
2019.1.9로 통일 업데이트
그러나 아무것도 효과가 없었다
문제가 페이스 북에 있으며 화합이나 그 밖의 어떤 것도 아님을 알고 있습니다
<올>프로젝트는 잠재 고객 네트워크 SDK만으로도 제대로 빌드됩니다.
프로젝트는 페이스 북 SDK만으로도 제대로 빌드됩니다.
프로젝트에서 두 패키지를 모두 가져올 때만 빌드가 실패합니다.
두 패키지를 모두 가져올 때 다음과 같은 오류가 발생합니다 :
PrecompiledAssemblyException: Multiple precompiled assemblies with the same name Facebook.Unity.Android.dll included for the current platform. Only one assembly with the same name is allowed per platform. Assembly path: {0} UnityEditor.Scripting.ScriptCompilation.EditorBuildRules.CreateTargetAssemblies (System.Collections.Generic.IEnumerable
1[T] customScriptAssemblies, System.Collections.Generic.IEnumerable
1 [T] 사전 컴파일 된 어셈블리) C : /buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorBuildRules.cs : 221) UnityEditor.Scripting.ScriptCompilation.EditorCompilation.UpdateCustomTargetAssemblies () C : /buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs : 672) UnityEditor.Scripting.ScriptCompilation.EditorCompilation.SetAllCustomScriptAssemblyJsonContents (System.String [] 경로, System.String [] 내용, System.String [] guids) (에서 C : /buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs : 892) UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.SetAllCustomScriptAssemblyJsonContents (System.String [] allAssemblyJsonPaths, System.String [] allAssemblyJsonContents, System.String [] guids) (에서 C : /buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs : 241)
- 답변 # 1
관련 자료
- c++ : Apple Silicon에서 부스트를 사용하여 CMake 프로젝트에서 테스트 스위트를 구축 할 수 없습니다.
- android - 프로젝트를 만들거나 빌드 할 수 없음 - ': app : transformdexarchivewithexternallibsdexmergerfordebug'태스크에 대한 실행 실패
- unity3d - Firebase Unity 플러그인을 사용하여 Android에서 FaceBook Auth 기능을 구현하면 충돌이 발생합니다
- azure devops - 다중 프로젝트 솔루션에서 프로젝트 1 빌드
- unity3d - 유니티 빌드 에러 - actionjson을 제거한 후 빌드 할 때 찾을 수 없습니다
- unity3d - 유니티 2d - 에디터에서 낮은 fps, 빌드에서 60+ fps
- c# - 빌드 및 유니티 편집기에서 출력이 다르게 나타남
- unity3d - 빌드 중 유니티 충돌
- Angular-cli v6 새 프로젝트 빌드에 실패 했습니까?
- unity3d - C # 스크립트를 사용하여 Unity 빌드에서 항목을 클릭 할 수 없음
- unity3d - 아이소 메트릭 3D Unity 프로젝트의 2D 스프라이트
- android - 반응 기본 프로젝트가 성공적으로 빌드되지 않았습니다
- installshield - 설치 쉴드를 만들 수 있습니까?64 비트 setupexe를 생성하는 스크립트 설치/스크립트 MSI 프로젝트 설치?
- spring - 성공적인 업그레이드를 위해 포함 된 모든 수정 또는 변경 사항을 최대 절전 모드 4에서 최대 절전 모드 5로 업그레이드하고 싶습니다
- reactjs - 반응 프로젝트 AWS를 구축 할 수 없음
- c# - Auth0으로 WeGL Unity Game 빌드를 실행하는 동안 오류가 발생했습니다
- Android-Studio에서 반응 네이티브 프로젝트를 빌드 할 수 없습니다
- reactjs - 반응 네이티브 프로젝트에 대한 빌드 문제가 있습니다
- spring - Java 8이 설치된 시스템에서 Java 6 프로젝트의 빌드 경로를 설정하는 방법은 무엇입니까?
- msbuild - Azure devop에서 프로젝트 또는 종속성에 변경이있는 경우에만 빌드
프로젝트에서 UnityFacebookSDK 만 사용했는데 같은 오류 메시지가 나타납니다. 여기에 Unity 포럼에 답변을 게시했습니다. 링크, 여기에도 답변을 붙여 넣습니다.
UnityFacebookSDK를 프로젝트로 가져올 때도 같은 문제가 발생했습니다. 중복 된 라이브러리가있는 것으로 나타났습니다. 두 개의 Facebook.Unity.Android.dll과 두 개의 Facebook.Unity.IOS.dll이 있습니다. 여기 내 해결책 :
Goto FacebookSDK/Plugins/Android : 해당 폴더에서 Facebook.Unity.IOS.dll을 삭제합니다
Goto FacebookSDK/Plugins/IOS : Facebook.Unity.Android.dll 삭제
유니티 종료
프로젝트 라이브러리 폴더 이동 : PackageCache 및 ScriptAssemblies 폴더 삭제
방금 삭제 한 두 폴더를 다시 빌드 할 수 있도록 Unity를 다시 시작합니다
나에게 도움이 되었으면 좋겠다.