Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已升级 http 版本并收到此类错误。
参数类型“String”不能分配给参数类型“Uri”。
将String转换为Uri的任何解决方案?
根据http的更新日志,您需要使用 Uri。
您可以使用Uri.parse转换 Uri
Uri.parse(your_url);