a3a*_*del 4 encoding android character-encoding retrofit2
我试图在我的应用程序中调用api我有以下url模板
test-test.domainname.com/feeds/json/v3/attribute/attribute
我正在使用改造2,但我得到以下致命异常
非法网址:test-test.domainname.com
这是我的界面
public interface Iinterface{
@GET("feeds/json/v3/attribute/"+attribute)
Call<ArrayList<result>>getresult();
}
Run Code Online (Sandbox Code Playgroud)
有人可以帮我解决这个问题......
我的基本URL在这里: http://myapiname.azurewebservices.net
和饲料方法是这样的:
public interface Iinterface{
@GET("/feeds/json/v3/attribute/"+attribute)
Call<ArrayList<result>>getresult();
}
Run Code Online (Sandbox Code Playgroud)
并且工作得很好.请添加http or https并重试
您没有协议部分.前置http://或https://取决于哪个适用于您的网址 -
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("http://test-test.domainname.com")
// ... other retrofit options
.build();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12046 次 |
| 最近记录: |