This是我先前的问题。
现在,我删除了Firebase Project进行测试。并尝试将其连接到真实的Firebase项目。
我在项目中添加了真实的$ sudo docker run -it -v /home/jugs/Desktop/geeksforgeeks/dockerBertClient/:/mydir/ --net=host bert_client_api /bin/bash
,但出现此错误。 (已经在CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
de9bb74a0e04 bert_client_api "/bin/bash" 9 minutes ago Up 9 minutes suspicious_lewin
f9d5a35a75bb bert_services "/bin/bash" 18 minutes ago Up 18 minutes 80/tcp, 127.0.0.1:5555-5556->5555-5556/tcp quizzical_minsky
和google-services.json
中尝试过
/app/
我从/app/src/
添加了E/FirebaseRemoteConfig: Fetch failed! Server responded with an error.
com.google.android.gms.internal.firebase_remote_config.zze: 400 Bad Request
{
"code": 400,
"errors": [
{
"domain": "global",
"message": "API key not valid. Please pass a valid API key.",
"reason": "badRequest"
}
],
"message": "API key not valid. Please pass a valid API key.",
"status": "INVALID_ARGUMENT"
}
at com.google.android.gms.internal.firebase_remote_config.zzn.zza(Unknown Source:14)
at com.google.android.gms.internal.firebase_remote_config.zzh.zzb(Unknown Source:5)
at com.google.android.gms.internal.firebase_remote_config.zzab.zzac(Unknown Source:184)
at com.google.android.gms.internal.firebase_remote_config.zzf.zzi(Unknown Source:51)
at com.google.android.gms.internal.firebase_remote_config.zzes.zzc(Unknown Source:49)
at com.google.android.gms.internal.firebase_remote_config.zzes.zzb(Unknown Source:23)
at com.google.android.gms.internal.firebase_remote_config.zzes.zza(Unknown Source:168)
at com.google.android.gms.internal.firebase_remote_config.zzer.then(Unknown Source:6)
at com.google.android.gms.tasks.zzf.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
。但是,仍然无法正常工作。
您有什么想法吗?
答案 0 :(得分:0)
我不太确定,但我认为是因为至少有原因之一。
我尝试过使invalidate&restart&clean build&delete abb失效。但是,它没有用。但是后来,它起作用了。我不知道为什么
如果您长期遇到问题,请咨询Firebase客户中心。