-
请问下有自带的清理缓存的方法吗?
我在文档里没有找到,
初学者 刚刚写了一个工具类 来显示缓存和清除okgo_cache数据库
public class OkgoDataCleanManager {
/**
* @name 显示缓存大小
* @param context 上下文
* @return string size字符
…
-
node.js搭建了一个文件服务器,返回的是Transfer-Encoding:chunked,此时OKGO获取不到文件下载进度,用QQ浏览器下载有下载速度
-
???
-
在okhttp里的log日志里,已经抛出这个异常了,要等个几秒才会回调到okgo的JsonCallBack的onError里,太慢了,本身设置超时时间就是为了不让用户一直等待进度条的加载时间,毕竟大部分进度条是不可取消的。
-
10-09 01:38:00.185 18594-18647/com.shzx.zcyg W/System.err: java.net.ProtocolException: unexpected end of stream
10-09 01:38:00.185 18594-18647/com.shzx.zcyg W/System.err: at okhttp3.internal.http…
-
服务器要求上传图片时使用表单形式,没有对应的key
这样上传(强制使用表单不成功)
OkGo.post(HttpApi.IMG_UPLOAD_RESOURCE)
.isMultipart(true)
.tag(this)
.upFile(file)
.execute(object :…
-
![qq 20170817110155](https://user-images.githubusercontent.com/6880702/29395499-b9fd142a-8343-11e7-8e88-4da89be20105.png)
这两个方法都试过了,app端每次请求cookie里面的session id都不一样,导致app端无法登录,服务器端是根据session id来识别…
-
你好,我在使用混淆后(已按文档添加混淆规则),一直报空指针异常错,错误信息:
`com.lzy.okgo.cache.policy.NoCachePolicy$1.run(NoCachePolicy.java:43)`请问该如何解决
-
E/AndroidRuntime( 9506): FATAL EXCEPTION: OkHttp Dispatcher
E/AndroidRuntime( 9506): Process: com.xinzhe.hotvision, PID: 9506
E/AndroidRuntime( 9506): java.lang.NoSuchMethodError: No static method h…
-
我第一个接口要是卡住了,后面的接口要等卡着的接口执行完毕,才能继续请求。我的每个接口request都是new出来的。这是我哪里配置错了吗?