PlatformException(invalid_image, Cannot load representation of type public.jpeg, NSItemProviderErrorDomain, null)

huangapple go评论86阅读模式
英文:

PlatformException(invalid_image, Cannot load representation of type public.jpeg, NSItemProviderErrorDomain, null)

问题

我在使用 image_picker Flutter 实现时遇到以下错误:

PlatformException(invalid_image, 无法加载类型为 public.jpeg 的表示,NSItemProviderErrorDomain, null)

这个问题发生在 iOS 模拟器上。

英文:

I am getting folowing error for image_picker flutter implementaion

PlatformException(invalid_image, Cannot load representation of type public.jpeg, NSItemProviderErrorDomain, null)

this issue happening on ios simulator

答案1

得分: 31

这种情况发生在你在iOS模拟器中尝试选择一个损坏的图像时,要解决这个问题,只需选择另一张图像或从Safari浏览器下载一些图像。

英文:

yes this happens when you try to choose a corrupted image in ios simulator,

to solve this just choose another image or download some images from safari
browser

答案2

得分: 0

我在 iOS 模拟器上遇到了类似的问题,就在升级了 image_picker 包之后。

我将它降级到了 image_picker: ^0.8.7。然后它开始正常工作。

image_picker (pub.dev)

英文:

I encountered this similar issue on iOS simulator, right after upgrading the image_picker package.

I downgraded it to image_picker: ^0.8.7. It started working for me normally.

image_picker (pub.dev)

huangapple
  • 本文由 发表于 2023年2月18日 18:57:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/75492854.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定