firebase-unity-sdk: [Bug] System.DllNotFoundException : FirebaseCppApp-9_2_0 assembly: type: member:(null)
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2021.3.4f1
- Firebase Unity SDK version: 9.2.0
- Source you installed the SDK: .unitypackage
- Problematic Firebase Component: FirebaseApp
- Other Firebase Components in use: Auth, Database, RemoteConfig, Crashlytics, pretty much all of them
- Additional SDKs you are using: AppsFlyer, AppLovinMax
- Platform you are using the Unity editor on: Linux
- Platform you are targeting: Android
- Scripting Runtime: IL2CPP
- Pre-built SDK from the website
[REQUIRED] Please describe the issue here:
When running playtests that use the Firebase SDK through CICD with game.ci, I get the following issue:
System.TypeInitializationException : The type initializer for 'Firebase.FirebaseApp' threw an exception.
----> System.TypeInitializationException : The type initializer for 'Firebase.LogUtil' threw an exception.
----> System.TypeInitializationException : The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception.
----> System.TypeInitializationException : The type initializer for 'SWIGExceptionHelper' threw an exception.
----> System.DllNotFoundException : FirebaseCppApp-9_2_0 assembly:<unknown assembly> type:<unknown type> member:(null)
The server runs Unity in a docker container on Ubuntu 22.04. My development machine has Ubuntu 22.04 as well and I don’t have this problem.
I’ve seen existing issues where this was happening on MacOS, but they seem to be resolved.
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:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (4 by maintainers)
Same issue on Firebase 9.4 and docker image editor-ubuntu-2021.3.7f1-android-1.0.1 from game-ci. I get this error on test-runner, the build step succeeds (after disabling test-runner), and it works on target device.