DllNotFoundException: FirebaseCppApp-6.2.0

4,495 views
Skip to first unread message

francisco pino

unread,
Jul 10, 2019, 10:58:48 AM7/10/19
to Firebase Google Group
DllNotFoundException: FirebaseCppApp-6.2.0
Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor () (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/AppUtilPINVOKE.cs:118)
Rethrow as TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception.
Firebase.AppUtilPINVOKE..cctor () (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/AppUtilPINVOKE.cs:138)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.AppUtilPINVOKE' threw an exception.
Firebase.AppUtil.SetLogFunction (Firebase.LogUtil+LogMessageDelegate arg0) (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/AppUtil.cs:64)
Firebase.LogUtil..ctor () (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/LogUtil.cs:74)
Firebase.LogUtil..cctor () (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/LogUtil.cs:30)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.LogUtil' threw an exception.
Firebase.FirebaseApp..cctor () (at Z:/tmp/tmp.o27C1CRL48/firebase/app/client/unity/proxy/FirebaseApp.cs:56)
Rethrow as TypeInitializationException: The type initializer for 'Firebase.FirebaseApp' threw an exception.
PlayerFromDatabase.Start () (at Assets/Scripts/PlayerFromDatabase.cs:19)



Help, ive been trying to solve this and i cant!!

Anthony Maurice

unread,
Jul 10, 2019, 6:11:41 PM7/10/19
to Firebase Google Group
Hi, I have a couple of questions.

What platform are you trying to build for (Android, iOS, or Desktop)?
What version of Unity are you using?

Have you been able to reproduce with our quickstarts, available at https://github.com/firebase/quickstart-unity ?

Dino Boselli

unread,
Jul 11, 2019, 9:37:00 AM7/11/19
to Firebase Google Group
Hi,

I've also been getting the error.
It happens only with Unity version 2019+
I've tested with Unity 2018.4 and there's no problem.
I also confirm that the issue can be reproduced with the quickstarts projects (just need to load them in Unity 2019.2 for example).
I am building for Android.

Any hints for a solution would be awesome.

Shawn Kuang

unread,
Jul 26, 2019, 11:57:27 PM7/26/19
to Firebase Google Group
Hi folks,

I had a hard time to reproduce it.
I used Unity 2019.1.11f1 and Firebase SDK 6.2.0 with Auth testapp from https://github.com/firebase/quickstart-unity.
And I did not see this exception at all.

Could you provide more detail about how to reproduce this exception? Ex. your Unity configuration, which platform did you see this exception, sample project or log.

Otherwise,there are a couple things you can try:
If this happened when you played in editor
  1. It is possible that you mix-match different version of Firebase SDK, ex. Database from 6.0.0 and Auth from 6.2.0.  Please upgrade all of your plugins
  2. If 1 does not resolve it, try to remove all Firebase plugins under Assets/Firebase, Assets/PlayServicesResolver and Assets/Plugins and reimport every plugin back again.
If this happened on Android
  1. If you upgraded to the latest Play Service Resolver, try to downgrade to that provided in Firebase SDK.  
  2. Try to use Assets > Play Services Resolver > Android Resolver > Force Resolve
  3. Try to remove all Firebase plugin and reimport again.
Please let us know if this works for you or provide more information.

Thank you
Shawn

Patrick Martin

unread,
Aug 19, 2019, 12:02:45 PM8/19/19
to Firebase Google Group
Hi Everybody!

Has Shawn's suggestion generally resolved the issues y'all are having? I did a quick validation with the 6.2.2 Firebase SDK and Unity 2019.2.0f1 building for Android and didn't experience the issue.

--Patrick
Reply all
Reply to author
Forward
0 new messages