“java.net.MalformedURLException: Protocol not found” read to html file

前端 未结 2 876
花落未央
花落未央 2020-11-30 11:18

I receviced an error: java.net.MalformedURLException: Protocol not found

I want to read an HTML file on the web

mainfest :::::   uses-pe         


        
相关标签:
2条回答
  • 2020-11-30 12:10
    String myUri = "";
    
    
    
    myUri = "www.tcmb.gov.tr/kurlar/today.html";
    

    your uri is not completed.you can write complete url just like as.

    String myUri="https://www.tcmb.gov.tr/kurlar/today.html";
    
    0 讨论(0)
  • 2020-11-30 12:19

    Your URI is not a URI. There is no protocol component. It needs http:// or whatever other protocol you intend.

    0 讨论(0)
提交回复
热议问题