我想从身份验证API下载图像。如何下载config Glide?

GlideUrl glideUrl = new GlideUrl(url,
new LazyHeaders.Builder()
    .addHeader("Authorization", token)
    .build());

GlideApp.with(context)
        .load(glideUrl)
         .into(imageView);

最佳答案

请改用.addHeader("Authorization", "Bearer " + token)

10-04 14:08