okHttp使用中报Could not find method java.nio.file.Files.newOutputStreamo警告问题
来源:互联网 发布:融资型分级基金 知乎 编辑:程序博客网 时间:2024/06/06 01:21
最近在使用okHttp过程中总是报下面的警告
I/dalvikvm﹕ Could not find method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getContentLengthLong, referenced from method com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getContentLengthLongW/dalvikvm﹕ VFY: unable to resolve virtual method 21498: Lcom/squareup/okhttp/internal/huc/HttpURLConnectionImpl;.getContentLengthLong ()JD/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002I/dalvikvm﹕ Could not find method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getHeaderFieldLong, referenced from method com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getHeaderFieldLongW/dalvikvm﹕ VFY: unable to resolve virtual method 21503: Lcom/squareup/okhttp/internal/huc/HttpURLConnectionImpl;.getHeaderFieldLong (Ljava/lang/String;J)JD/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002W/dalvikvm﹕ VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)W/dalvikvm﹕ VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)I/dalvikvm﹕ Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sinkW/dalvikvm﹕ VFY: unable to resolve static method 24080: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x000aW/dalvikvm﹕ VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)W/dalvikvm﹕ VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)I/dalvikvm﹕ Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.sourceW/dalvikvm﹕ VFY: unable to resolve static method 24079: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x000a查询了下发现是因为okHttp支持的一些API需要java7.0或者android M ,如果运行在低版本下okHttp就会报这些警告,直接忽略就可以了。
参考:https://github.com/square/okhttp/wiki/FAQs
0 0
- okHttp使用中报Could not find method java.nio.file.Files.newOutputStreamo警告问题
- struts中警告: Could not find action or result,问题
- java中 implements Serializable时 报错 could not find class file 处理办法
- android 报错 java.lang.IllegalStateException: Could not find a method next(View)
- 屏保 问题 could not find the file
- 报错:Could not find method android.view.ViewTreeObserver.removeOnGlobalLayoutListener
- Could not find method问题解决
- IAR报错could not find the following source file
- 解决Could not find method android() for arguments问题
- Could not find method com.umeng.analytics.d.a问题
- 解决Could not find method android() for arguments问题
- 解决Could not find method android() for arguments问题
- 解决commons.CommonsLogger (CommonsLogger.java:45) Could not find method
- java.lang.IllegalStateException: Could not find a method onStartSingleInstanceActivityClickLisenter(
- java jni使用之Error: Could not find class file for 'HelloWorld'.
- 开发中碰到的问题:eclipse中的引用项目报Could not find *.apk!解决办法
- 警告: Could not find action or result
- 警告: Could not find action or result
- poj 1743 hash
- 2015年大二上-数据结构-顺序表(1)-求集合并集
- linux管道机制
- Ubuntu解压缩zip,tar,tar.gz,tar.bz2
- Android Studio下NDK—JNI初涉
- okHttp使用中报Could not find method java.nio.file.Files.newOutputStreamo警告问题
- 工具产品设计心得
- j2ee建立的Dynamic Web Project没有web.xml
- 【SSH项目实战】国税协同平台-4.用户管理需求分析&CRUD方法2
- 采用ThinkPHP3.2.3框架开发网站快速入门
- 使用javah生成C/C++头文件的误区
- android消息机制理解
- background属性用法总结
- 联合体(union)的使用方法及其本质