java.lang.IllegalArgumentException: Illegal URL with retrofit

后端 未结 3 497
梦毁少年i
梦毁少年i 2020-12-21 00:19

i\'m trying to call an api in my application i\'ve the following url template

test-test.domainname.com/feeds/json/v3/attribute/attribute

3条回答
  •  梦毁少年i
    2020-12-21 00:58

    my base URL is here: http://myapiname.azurewebservices.net

    and feed method is like that :

    public interface Iinterface{
       @GET("/feeds/json/v3/attribute/"+attribute)
       Call>getresult();
    }
    

    And working perfectly. Please add http or https and try again

提交回复
热议问题