Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#与firestore的连接_C#_Android_Google Cloud Firestore_Uno Platform - Fatal编程技术网

C#与firestore的连接

C#与firestore的连接,c#,android,google-cloud-firestore,uno-platform,C#,Android,Google Cloud Firestore,Uno Platform,我正在尝试将我的Uno平台应用程序连接到Firestore数据库 这是我的连接码 string path = AppDomain.CurrentDomain.BaseDirectory + @"CloudFire.json"; Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", path); firestoreDb = FirestoreDb.Create("t

我正在尝试将我的Uno平台应用程序连接到Firestore数据库

这是我的连接码

string path = AppDomain.CurrentDomain.BaseDirectory + @"CloudFire.json";
Environment.SetEnvironmentVariable("GOOGLE_APPLICATION_CREDENTIALS", path);
firestoreDb = FirestoreDb.Create("todo-234fa");
此连接确实适用于UWP,但不适用于Android或WASM

这是个例外

System.InvalidOperationException
Message=Error reading credential file from location CloudFire.json: Could not find file 
"/CloudFire.json"
Please check the value of the Environment Variable GOOGLE_APPLICATION_CREDENTIALS
我还添加了指向CloudFire.json文件的环境变量GOOGLE_APPLICATION_CREDENTIALS

但这种例外情况在android中仍然存在


如何使用Uno平台访问firestore数据库?

路径值是多少,CloudFire.json文件是否位于该路径中?