【问题标题】:Android: Emulator can't pull from database / Extremely slow?Android:模拟器无法从数据库中提取/非常慢?
【发布时间】: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


    【解决方案1】:

    好的,所以我的计算机上运行了一个完全独立的虚拟 UNIX 服务器,显然它不断地杀死模拟器的进程...

    一次不要运行超过 1 个虚拟服务器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-27
      • 2019-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-23
      相关资源
      最近更新 更多