首页 > 解决方案 > undefined 不是对象(评估“Wu.getRandomValues”)

问题描述

我正在为我的应用程序使用 firebase firestore。每当我尝试打电话firebase.firestore().collection("users")时,我都会得到undefined is not an object (evaluating 'Wu.getRandomValues')。我不知道这个错误意味着什么,就像在我之前的项目中一样,我使用了 firestore 并且没有出现任何此类错误。我最近还升级了我的 expo 客户端,但我不确定新版本是否是问题所在。任何帮助,将不胜感激。

标签: firebasereact-nativeexpo

解决方案


就我而言,它发生在我升级到 Expo SDK 37 时。我通过更新 android studio 和 Android SDK 解决了这个问题。 https://www.javadrive.jp/android/install/index3.html#section2


推荐阅读