Java Android:仿真器可以';无法从数据库中提取数据/速度非常慢?
昨天和前天,我的Android模拟器工作得非常好,一个像素3a XL 28。工作得很有魅力 今天早上我重新启动了我的电脑,现在所有的模拟器都不工作了 在一天的早些时候,这是一种工作,但它是非常缓慢的,现在它不会工作了 我只是得到一个空白的白色屏幕。我的代码正在运行,但我的代码中出现了一个错误,即我的数据库文档不存在,即使它存在,而且首先要花上一两分钟才能到达数据库调用。我使用的是Mac操作系统 我有一个安卓手机,我刚刚在上面运行了代码,它工作起来就像一个符咒Java Android:仿真器可以';无法从数据库中提取数据/速度非常慢?,java,android,android-studio,kotlin,android-emulator,Java,Android,Android Studio,Kotlin,Android Emulator,昨天和前天,我的Android模拟器工作得非常好,一个像素3a XL 28。工作得很有魅力 今天早上我重新启动了我的电脑,现在所有的模拟器都不工作了 在一天的早些时候,这是一种工作,但它是非常缓慢的,现在它不会工作了 我只是得到一个空白的白色屏幕。我的代码正在运行,但我的代码中出现了一个错误,即我的数据库文档不存在,即使它存在,而且首先要花上一两分钟才能到达数据库调用。我使用的是Mac操作系统 我有一个安卓手机,我刚刚在上面运行了代码,它工作起来就像一个符咒 FirebaseFirestore
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.
这到底是怎么回事?我尝试过冷启动,安装新的OS/模拟器,擦除模拟器上的数据,但没有任何效果
编辑:值得注意的是,当它今天早上工作时,它根本无法拉入或写入我的数据库,但它试图写入的数据存储在其他地方。我的数据库从未更新过,但当我打开emulator时,新内容仍然存在。我甚至不知道这是怎么可能的。好吧,所以我的计算机上运行着一个完全独立的虚拟UNIX服务器,显然它一直在扼杀仿真器的进程 一次运行的虚拟服务器不得超过1台