改造中的网址错误

时间:2017-09-26 10:05:08

标签: java android android-layout android-fragments

此处显示运行时错误网址的代码:

    String FULL_url = "abcd";


    HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();

    Interceptor logging = interceptor.setLevel(HttpLoggingInterceptor.Level.BASIC);

    CookieManager cookieManager = new CookieManager();

    cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);

    OkHttpClient httpClient = new OkHttpClient.Builder().cookieJar(new JavaNetCookieJar(cookieManager)).addInterceptor(logging).build();

    Gson gson = new GsonBuilder().setLenient().create();

    Retrofit.Builder builder = new Retrofit.Builder().baseUrl(API_BASE_URL).addConverterFactory(GsonConverterFactory.create(gson));

    Retrofit retrofit = builder.client(httpClient).build();

    RerofitInterface api = retrofit.create(RerofitInterface.class);

    Call<SportsResultItems> call = api.getFeed(FULL_url);

此处网址显示的是一些错误,而不是显示&的{​​{1}}。

%

0 个答案:

没有答案