简体   繁体   English

Android:模拟器无法从数据库中提取/非常慢?

[英]Android: Emulator can't pull from database / Extremely slow?

So I had my Android Emulator working perfectly fine yesterday and the day before, a Pixel 3a XL 28. Worked like a charm.所以我的 Android 模拟器昨天和前天都运行得非常好,一个 Pixel 3a XL 28。工作起来很迷人。

I restarted my computer and this morning, and now NONE of the emulators are working at all.我重新启动了我的电脑,今天早上,现在没有一个模拟器在工作。

Early in the day, it was sort of working but it was extremely slow, and now it won't work at all.当天早些时候,它有点工作,但速度非常慢,现在它根本无法工作。

I just get a blank white screen.我只是得到一个空白的白色屏幕。 My code is running, and I am just getting an error in my code that my database document doesn't exist, even though it does, and it takes a good minute or two to get to the database call in the first place.我的代码正在运行,我只是在我的代码中收到一个错误,我的数据库文档不存在,即使它存在,而且首先需要一两分钟才能进入数据库调用。 I am on a Mac OS.我在 Mac 操作系统上。

I have an android phone that I just ran the code on, and it works like a charm.我有一部 android 手机,我只是在上面运行代码,它就像一个魅力。

 FirebaseFirestore.getInstance()
                .collection("Users")
                .document("hjkyilk")
                .get()
                .addOnSuccessListener { result ->
                    ...

                }
                .addOnFailureListener { exception ->
                    // Always hitting this, although this database DEFINITELY exists
                    println("User doesn't exist")
                }

with this error:出现此错误:

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.

What in the world is going on here?这到底是怎么回事? I have tried cold booting, installing new OS/Emulators, wiping the data on the emulators, nothing is working.我尝试过冷启动、安装新的操作系统/模拟器、擦除模拟器上的数据,但没有任何效果。

EDIT: It's worth noting when it worked this morning, it wasn't able to pull or write to my database at all, but the data it was trying to write was stored somewhere else.编辑:值得注意的是,今天早上它工作时,它根本无法拉取或写入我的数据库,但它试图写入的数据存储在其他地方。 My database was never updated, but when I opened the emulator, the new content was still there.我的数据库从未更新过,但是当我打开模拟器时,新内容仍然存在。 I don't even know how that's possible.我什至不知道这怎么可能。

Okay, so I had a completely separate virtual UNIX server running on my computer and apparently it was constantly killing the processes of the emulator...好的,所以我在我的计算机上运行了一个完全独立的虚拟 UNIX 服务器,显然它一直在杀死模拟器的进程......

Don't run more than 1 virtual server at a time.一次不要运行超过 1 个虚拟服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM