firebase-unity-sdk icon indicating copy to clipboard operation
firebase-unity-sdk copied to clipboard

[Bug] FirebaseCppApp-9_4_0.dll is dynamic linked against vcruntime140_1.dll (and friends).

Open bithoarder opened this issue 3 years ago • 5 comments

[REQUIRED] Please fill in the following fields:

  • Unity editor version: Unity 2021.3.4f1
  • Firebase Unity SDK version: 9.4
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: App/Core
  • Other Firebase Components in use: Crashlytics, Analytics
  • Additional SDKs you are using: na
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: na
  • Scripting Runtime: na
  • Pre-built SDK from the website

[REQUIRED] Please describe the issue here:

When starting a Unity project in the Windows Editor, FirebaseCppApp-8_9_0.dll will fail to load if the VC2015 redist have not been installed by some unrelated application.

Steps to reproduce:

  • Clean window install (ie. no other application that has installed the required VC runtime dlls must be installed).
  • Create a new project
  • add Firebase App (Core) v9.4
  • add call to FirebaseApp.CheckAndFixDependenciesAsync()
  • hit play
  • notice exception in Unitys log: DllNotFoundException: FirebaseCppApp-9_4_0 assembly: type: member:(null)

Relevant Code:

using System.Collections;
using System.Collections.Generic;
using Firebase;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("Before");
        FirebaseApp.CheckAndFixDependenciesAsync();
        Debug.Log("After");
    }
}

bithoarder avatar Aug 18 '22 06:08 bithoarder

Hi @bithoarder,

  • Have you imported the External Dependency Manager? It's imperative that this be imported first before Firebase App (Core).
  • Could you share the full error message so we can identify what's causing the behavior?
  • When you mentioned "friends", do you mean are there any other related .dll files that have to be present?

paulinon avatar Aug 18 '22 12:08 paulinon

Hey @bithoarder. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Aug 25 '22 01:08 google-oss-bot

We have one member on our team who has been getting DllNotFoundException: FirebaseCppApp-9_4_0 assembly: type: member:(null), not for Firebase, but a random dll since upgrading to Unity 2021. Might be an Unity issue?

dginovker avatar Aug 26 '22 14:08 dginovker

Without the full error it's hard to say but this looks like a dupe of #443

dginovker avatar Aug 26 '22 14:08 dginovker

Hey @bithoarder. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Sep 02 '22 01:09 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@bithoarder if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Sep 09 '22 01:09 google-oss-bot