我正在开发一个 flutter+firebase 项目,它在模拟器上运行良好,但在真实设备上,当我尝试从 firestore 或身份验证中获取数据时,它无法正常工作并显示以下错误。我将 wifi 连接切换到移动数据,但没有用。我也试过有和没有 vpn。
W/ample.thesocia(26812): Accessing hidden method Ldalvik/system/BlockGuard$Policy;->onNetwork()V (light greylist, linking)
W/Firestore(26812): (23.0.0) [WatchStream]: (679e3e2) Stream closed with status: Status{code=UNAVAILABLE, description=403:Forbidden, cause=null}.
W/Firestore(26812): (23.0.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: Status{code=UNAVAILABLE, description=403:Forbidden, cause=null}
W/Firestore(26812): This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
我还向清单文件(主文件和调试文件)添加了所有 Internet 权限