【发布时间】:2020-05-21 20:22:58
【问题描述】:
所以我昨天和前一天都让我的 Android 模拟器运行良好,Pixel 3a XL 28。运行起来就像一个魅力。
今天早上我重新启动了我的电脑,现在没有一个模拟器在工作。
当天早些时候,它有点工作,但速度非常慢,现在根本无法工作。
我只是得到一个空白的白色屏幕。我的代码正在运行,但我的代码中出现了一个错误,即我的数据库文档不存在,尽管它确实存在,并且首先需要一两分钟才能到达数据库调用。我在 Mac OS 上。
我有一部安卓手机,我刚刚在上面运行了代码,它就像一个魅力。
FirebaseFirestore.getInstance()
.collection("Users")
.document("hjkyilk")
.get()
.addOnSuccessListener { result ->
...
}
.addOnFailureListener { exception ->
// Always hitting this, although this database DEFINITELY exists
println("User doesn't exist")
}
出现此错误:
2020-02-05 14:58:47.751 5504-5504/com.example.casualdatingapp E/ResourcesCompat: Failed to find font-family tag
2020-02-05 14:58:47.779 5504-5504/com.example.casualdatingapp E/ResourcesCompat: Failed to find font-family tag
2020-02-05 14:58:47.814 5504-5504/com.example.casualdatingapp E/ResourcesCompat: Failed to find font-family tag
2020-02-05 14:58:48.069 5504-5575/com.example.casualdatingapp E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.
2020-02-05 14:58:48.124 5504-5605/com.example.casualdatingapp E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
2020-02-05 14:58:49.803 5504-5504/com.example.casualdatingapp E/RecyclerView: No adapter attached; skipping layout
2020-02-05 14:58:49.842 5504-5575/com.example.casualdatingapp E/FirebaseInstanceId: Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.
这里到底发生了什么?我尝试过冷启动、安装新的操作系统/模拟器、擦除模拟器上的数据,但没有任何效果。
编辑:值得注意的是,当它今天早上工作时,它根本无法拉取或写入我的数据库,但它试图写入的数据存储在其他地方。我的数据库从未更新,但是当我打开模拟器时,新内容仍然存在。我什至不知道这怎么可能。
【问题讨论】:
标签: java android android-studio kotlin android-emulator