13

I have upgraded http version and getting this type of error.

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

Any solution for convert String to Uri?

nvoigt
  • 75,013
  • 26
  • 93
  • 142
Kalp Shah
  • 279
  • 2
  • 14

1 Answers1

25

As per the changelog of http, you need to use Uri.

You can convert Uri using Uri.parse

Uri.parse(your_url);
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437