【问题标题】:Exception caught by image resource service The following assertion was thrown resolving an image codec:图像资源服务捕获的异常 抛出以下断言解析图像编解码器:
【发布时间】:2021-11-16 14:01:58
【问题描述】:
════════ Exception caught by image resource service ════════════════════════════
The following assertion was thrown resolving an image codec:
Unable to load asset: /data/user/0/com.Freedom.new_chat/cache/file_picker/-vimzzn.jpg
When the exception was thrown, this was the stack
#0      PlatformAssetBundle.load
package:flutter/…/services/asset_bundle.dart:228
<asynchronous suspension>
#1      AssetBundleImageProvider._loadAsync
package:flutter/…/painting/image_provider.dart:675
<asynchronous suspension>

任何人都可以帮助我,我可以提供代码 我现在会提供它们,但我不知道哪一个有错误,谢谢

现在我也买了这个

    Image provider: AssetImage(bundle: null, name: "/data/user/0/com.Freedom.new_chat/cache/file_picker/Snapchat-1984491257.jpg")
Image key: AssetBundleImageKey(bundle: PlatformAssetBundle#534c4(), name: "/data/user/0/com.Freedom.new_chat/cache/file_picker/Snapchat-1984491257.jpg", scale: 1.0)

【问题讨论】:

  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: flutter dart flutter-dependencies


【解决方案1】:

关闭你的模拟器并运行这个命令 干净利落 然后运行这个命令 颤振酒吧获取 运行您的应用

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-12-24
    • 2021-06-07
    • 2022-01-04
    • 2021-10-08
    • 2019-03-09
    • 2022-10-04
    • 1970-01-01
    相关资源
    最近更新 更多