【问题标题】:DllNotFoundException:Unable to load DLL 'FirebaseCppApp-6_13_0DllNotFoundException:无法加载 DLL 'FirebaseCppApp-6_13_0
【发布时间】:2021-12-12 22:50:13
【问题描述】:

使用 Firebase 身份验证 SDK 统一

收到此错误:

DllNotFoundException:无法加载 DLL“FirebaseCppApp-6_13_0”:找不到指定的模块。 at Firebase.AppUtilPINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_AppUtil (Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate applicationDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate arithmeticDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate divideByZeroDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate indexOutOfRangeDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper +ExceptionDelegate invalidCastDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate invalidOperationDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate ioDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate nullReferenceDelegate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate outOfMemoryDe​​legate, Firebase.AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate overflowDelegate, Firebase .AppUtilPINVOKE+SWIGExceptionHelper+ExceptionDelegate systemExceptionDelegate e) [0x00000] 在 :0 在 Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () [0x00000] 在 :0 在 Firebase.AppUtilPINVOKE..cctor () [0x00000] 在 :0 在 Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) [0x00000] 在 :0 在 Firebase.LogUtil..ctor () [0x00000] 在 :0 在 Firebase.LogUtil..cctor () [0x00000] 在 :0 在 Firebase.FirebaseApp..cctor () [0x00000] 在 :0 在 LoginHandler.Start () [0x00000] 在 :0 Rethrow as TypeInitializationException:“Firebase.AppUtilPINVOKE.SWIGExceptionHelper”的类型初始化程序引发了异常。 在 Firebase.AppUtilPINVOKE..cctor () [0x00000] 在 :0 在 Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) [0x00000] 在 :0 在 Firebase.LogUtil..ctor () [0x00000] 在 :0 在 Firebase.LogUtil..cctor () [0x00000] 在 :0 在 Firebase.FirebaseApp..cctor () [0x00000] 在 :0 在 LoginHandler.Start () [0x00000] 在 :0 Rethrow as TypeInitializationException:“Firebase.AppUtilPINVOKE”的类型初始化程序引发了异常。 在 Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) [0x00000] 在 :0 在 Firebase.LogUtil..ctor () [0x00000] 在 :0 在 Firebase.LogUtil..cctor () [0x00000] 在 :0 在 Firebase.FirebaseApp..cctor () [0x00000] 在 :0 在 LoginHandler.Start () [0x00000] 在 :0 Rethrow as TypeInitializationException:“Firebase.LogUtil”的类型初始化程序引发了异常。 在 Firebase.FirebaseApp..cctor () [0x00000] 在 :0 在 LoginHandler.Start () [0x00000] 在 :0 Rethrow as TypeInitializationException:“Firebase.FirebaseApp”的类型初始化程序引发了异常。 在 LoginHandler.Start () [0x00000] in :0

(文件名:目前在 il2cpp 行中不可用:-1)

【问题讨论】:

    标签: firebase firebase-authentication


    【解决方案1】:

    所以我遇到了同样的错误,但使用 FirebaseCppApp 7.1.0 DllNotFoundException:无法加载 DLL“FirebaseCppApp-7_1_0”。

    在 Unity 下的菜单栏中导航到 Assets -> Project Settings -> Player -> Target Architectures 并取消选中 ARMv7

    之后导航到外部依赖管理器并选择强制解决。然后 Unity 应该会解决依赖关系,并且您的应用程序应该可以正常运行。

    【讨论】:

      【解决方案2】:

      我认为您可能有混合依赖项。您应该检查位于

      的maven url

      资产/插件/Android/mainTemplate.gradle

      如果找不到,请转到发布设置创建它。 Maven URL 如下所示:

      maven { url (unityProjectPath + "/Assets/GeneratedLocalRepo/Firebase/m2repository") // Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/RemoteConfigDependencies.xml:20 }

      就我而言,firebase-app、firebase-auth、firebase-analytics 等所有依赖项都不位于 /Assets/GeneratedLocalRepo/Firebase/m2repository 中。 我使用从 firebase 网站下载的 TGZ 文件导入这些 SDK 依赖项,因为当我使用本教程的 SDK/donet3 导入时出现错误。所以我必须将maven url更改为加载的依赖项所在的位置。

      【讨论】:

        猜你喜欢
        • 2022-08-08
        • 2023-01-23
        • 2018-10-13
        • 1970-01-01
        • 2010-09-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多