DllNotFoundException: FirebaseCppApp-11_2_0 assembly:<unknown assembly> type:<unknown type> member:(null)

See original GitHub issue

[READ] For Firebase Unity SDK issues, please report to Firebase Unity open-source

Once you’ve read this section and determined that your issue is appropriate for this repository, please delete this section.

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2021.3.22f1
  • Firebase Unity SDK version: 11.2.0
  • Source you installed the SDK: auth (.unitypackage or Unity Package Manager)
  • Problematic Firebase Component: _____ (Auth, Database, etc.)
  • Other Firebase Components in use: _____ (Auth, Database, etc.)
  • Additional SDKs you are using: empty project (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: Linux and Mac (Mac, Windows, or Linux)
  • Platform you are targeting: desktop (iOS, Android, and/or desktop)
  • Scripting Runtime: Mono (Mono, and/or IL2CPP)

[REQUIRED] Please describe the issue here:

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

I get this error when I call any firebase functions in a project.

DllNotFoundException: FirebaseCppApp-11_2_0 assembly:<unknown assembly> type:<unknown type> member:(null) Firebase.AppUtilPINVOKE+SWIGExceptionHelper…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4087) Rethrow as TypeInitializationException: The type initializer for ‘SWIGExceptionHelper’ threw an exception. Firebase.AppUtilPINVOKE…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4107) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.AppUtilPINVOKE’ threw an exception. Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:4817) Firebase.LogUtil…ctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:81) Firebase.LogUtil…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:37) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.LogUtil’ threw an exception. Firebase.FirebaseApp…cctor () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/app/swig/Firebase.App_fixed.cs:2014) Rethrow as TypeInitializationException: The type initializer for ‘Firebase.FirebaseApp’ threw an exception. Firebase.Sample.Auth.UIHandler.Start () (at Assets/Firebase/Sample/Auth/UIHandler.cs:80)

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)? What’s the issue repro rate? (eg 100%, 1/5 etc) 100%

What happened? How can we make the problem occur? This could be a description, log/console output, etc.

If you have a downloadable sample project that reproduces the bug you’re reporting, you will likely receive a faster response on your issue.

Relevant Code:

// TODO(you): code here to reproduce the problem

https://github.com/firebase/quickstart-unity/issues/1130 It seems that the compatibility of the Unity-SDK package cannot be maintained. In a Windows environment, it works fine.

Issue Analytics

  • State:open
  • Created 2 months ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fardeen-khan17commented, Jul 15, 2023

I resolved this Issue on Mac by simply Going to the Folder

  1. Assets>Firebase>Plugins>x86_64
  2. Right-click on the FirebaseCppApp-11_2_0.bundle and select open with vs-code
  3. Select Open anyway on the prompt message. Once the file is opened in vs-code you can simply run the unity editor and it will work.
0reactions
yuji-10473commented, Aug 21, 2023

@AlmostMatt

My environment is not MAC, so I don’t get a warning. It is possible to open the file in VS Code. We are aware of the issues that occur with MACs. I believe that the problems that occur on Linux are occurring separately.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DllNotFoundException: FirebaseCppApp-10_0_1 ...
DllNotFoundException: FirebaseCppApp-10_0_1 assembly:<unknown assembly> type:<unknown type> member:(null) #510.
Read more >
FirebaseCppApp-11_3_0 assembly:<unknown ...
DllNotFoundException : FirebaseCppApp-11_3_0 assembly: type: member:(null) at (wrapper managed-to-native) Firebase.AppUtilPINVOKE+SWIGExceptionHelper.
Read more >
InterceptFeaturePlugin assembly:<unknown ...
DllNotFoundException : InterceptFeaturePlugin assembly:<unknown assembly> type:<unknown type> member:(null) UnityEngine.XR.OpenXR.Samples.
Read more >
DllNotFoundException: nanosockets assembly:<unknown ...
DllNotFoundException : nanosockets assembly:<unknown assembly> type:<unknown type> member :( null) It works only when I build a package and ...
Read more >
DllNotFoundException: HavokNative assembly in 0.51.0
DllNotFoundException : HavokNative assembly:<unknown assembly> type:<unknown type> member:(null). Havok.Physics.Plugin.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found