Firebase CheckDependencies Error for Andorid (VR)
Hi all,. I am currently trying to connect my Unity project to Firebase. This is the code I am using:
void Awake()
{
//Check that all of the necessary dependencies for Firebase are present on the system
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
{
dependencyStatus = task.Result;
if (dependencyStatus == DependencyStatus.Available)
{
//If they are avalible Initialize Firebase
warningLoginText.text = "Firebase is ready for use!";
Debug.LogError("Firebase dependencies are available");
InitializeFirebase();
}
else
{
Debug.LogError("Could not resolve all Firebase dependencies: " + dependencyStatus);
warningLoginText.text = "Could not resolve all Firebase dependencies";
}
});
}
In the Unity editor everything works perfectly and my log gives me the output "Firebase dependencies are available". However as soon as I switch to my Android device (Ouclus Quest) the code switches to " "Could not resolve all Firebase dependencies" meaning that the dependencies cannot be resolved. I did try to find a solution for quite a long time. One hint was to use the function "ContinueWithOnMainThread" instead of the "ContinueWith" function currently in the code. However this did not change the outcome.
I would really appreciate any help in any direction. Thank you!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613025931im_/https://answers.unity.com/themes/thub/images/avi.jpg)