【问题标题】:Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'无法解码流:android.graphics.ImageDecoder$DecodeException:无法创建带有消息“未实现”的图像解码器
【发布时间】:2019-12-12 04:06:48
【问题描述】:

我最近尝试将 Pusher 的 Chatkit 与一些 Kotlin 插件一起实现到我的 Android 应用程序中,但现在遇到了我无法解决的错误。

E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.

我在下面遇到的错误是:

E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE

这是通过让我陷入循环,因为我的互联网运行良好,尽管再往下几行,我得到:

W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
    This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.

注意:自从我开始更多地在咖啡馆而不是在家工作以来,我已经开始收到上述关于没有良好连接的错误,因为我需要出去。为了离线工作,firebase 让我选择加入offline mode,从那以后我一直收到无法连接的通知。

我正在关注入门页面 here 并已完成“显示消息”部分的末尾,但是当我进入活动时,它只是停止并空白。在过去的两天里,我一直在搜索 StackO 和网络的其余部分,试图解决冲突,但无济于事。我看过的所有类似帖子似乎都没有解决这个问题。

similarPost#1 但我不想保存到位图

这是整个堆栈跟踪:

E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/DynamiteModule: Local module descriptor class for providerinstaller not found.
I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
I/chatty: uid=10086(com.example.android_myneighborsbookshelf) AsyncTask #2 identical 1 line
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/ghborsbookshel: Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds

    This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.

【问题讨论】:

  • 只是为了确认,这是一个普遍的问题吗?它是否发生在具有不同 Internet 连接的多台设备上?
  • @clownba0t 到目前为止,这是因为我在我的 MacBook 笔记本电脑上使用模拟器(Pixel API 28)而发生的。我还没有测试其他设备。
  • 如果可以的话,试试其他设备。此外,始终值得确保设备上的日期和时间正确 - 有时差异会导致 SSL 出现问题(尽管通常这是即时握手错误而不是超时......)

标签: android firebase google-cloud-firestore pusher chatkit


【解决方案1】:

它似乎已经修复了,除了无法解码流错误但它没有崩溃,它只是显示在日志中。

我检查了更新、清理、重建、使缓存无效并重新启动,然后关闭了我的模拟器。我还完全重新启动了计算机 2 次,这似乎已经修复了它。

【讨论】:

    猜你喜欢
    • 2020-05-21
    • 1970-01-01
    • 1970-01-01
    • 2017-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-17
    • 1970-01-01
    相关资源
    最近更新 更多