UnityにFireBaseを導入したいです。
UnityでFireBaseを使えるようにしたいです。
発生している問題・エラーメッセージ
UnityにandroidでFireBaseSKDをインポートし使える状態にしたはずなのですが、
JAVA_HOME enviromnet references a directory (パス) that dose not contain java whoch is required to process Android libraris.
Curl error 56: Recv failure: Connection was reset
というエラーが出てしい、FireBaseが使えません。
また、FireBase関数も実行できません。
InvalidOperationException: Don't call Firebase functions before CheckDependencies has finished
該当のソースコード
C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4using Firebase; 5using Firebase.Database; 6using Firebase.Unity.Editor; 7 8public class ScriptName: MonoBehaviour 9{ 10 void Start () { 11 Firebase.FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => { 12 var dependencyStatus = task.Result; 13 if (dependencyStatus == Firebase.DependencyStatus.Available) { 14 15 }else { 16 UnityEngine.Debug.LogError(System.String.Format("Could not resolve all Firebase dependencies: {0}", dependencyStatus)); 17 } 18 }); 19 } 20 // Update is called once per frame 21 void Update() 22 { 23 24 } 25} 26
補足情報(FW/ツールのバージョンなど)
Unity 2019.3.6f
firebase_unity_sdk_6.13.0

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/16 14:33
2020/04/16 15:58
2020/04/18 02:39