0

While making Android App I'm receiving such an error. It would be great if somebody can give me a prompt concerning my code.

enter image description here

Md. Asaduzzaman
  • 14,963
  • 2
  • 34
  • 46

1 Answers1

2

Your URL is malformed. just add method of your URL.

for example add http:// in start of your URL. thats make your address like this: http://api.....

javadroid
  • 1,421
  • 2
  • 19
  • 43
  • thanks but now I have another error "java.io.IOException: Cleartext HTTP traffic to api.openweather.org not permitted" What can I do to solve the problem? – Taras Yasinski Jan 12 '20 at 14:30
  • 1
    if your problem is solved just fill the solved question by this answer. you can add ```android:usesCleartextTraffic="true"``` to your manifest ```application``` tag. see: https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted – javadroid Jan 12 '20 at 18:35