gpt4 book ai didi

flutter http 0.13.0 : String can not assign to Uri

转载 作者:行者123 更新时间:2023-12-03 13:31:09 27 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





The argument type 'String' can't be assigned to the parameter type 'Uri'

(3 个回答)


7 个月前关闭。




我已经升级了 http 版本并收到此类错误。
不能将参数类型“String”分配给参数类型“Uri”。
将字符串转换为 Uri 的任何解决方案?

最佳答案

根据 http 的更新日志,你需要使用Uri。
您可以使用 转换 Uri Uri.parse

Uri.parse(your_url);

关于 flutter http 0.13.0 : String can not assign to Uri,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66503289/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com