最近在使用okHttp过程中总是报下面的警告

I/dalvikvm﹕ Could not find method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getContentLengthLong, referenced from method com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getContentLengthLong
W/dalvikvm﹕ VFY: unable to resolve virtual method 21498: Lcom/squareup/okhttp/internal/huc/HttpURLConnectionImpl;.getContentLengthLong ()J
D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
I/dalvikvm﹕ Could not find method com.squareup.okhttp.internal.huc.HttpURLConnectionImpl.getHeaderFieldLong, referenced from method com.squareup.okhttp.internal.huc.HttpsURLConnectionImpl.getHeaderFieldLong
W/dalvikvm﹕ VFY: unable to resolve virtual method 21503: Lcom/squareup/okhttp/internal/huc/HttpURLConnectionImpl;.getHeaderFieldLong (Ljava/lang/String;J)J
D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0002
W/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.sink
W/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 0x000a
W/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.source
W/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

okHttp使用中报Could not find method java.nio.file.Files.newOutputStreamo警告问题相关推荐

  1. Java文件– java.nio.file.Files类

    Java Files class was introduced in Java 1.7 and is a part of java.nio.file package. Java Files类是Java ...

  2. SonarQube启动报错:WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedExcepti

    SonarQube启动报错 可以查看日志,一般日志会记录错误的详细内容 执行以下命令,查看日志: cd /opt/sonarqube-6.7.6/logs tail -n 100 sonar.log ...

  3. jenkins node java.nio.file.FileSystemException:xxxx/xx/:Operation not permitted

    jenkins node 报错:java.nio.file.FileSystemException:xxxx/xx/:Operation not permitted <===[JENKINS R ...

  4. Elasticsearch启动报错:Exception in thread “main“ java.nio.file.AccessDeniedException:

    在elastic search的目录下进入bin目录 ,启动ES用命令 ./elasticsearch 然后返回错误 Exception in thread "main" java ...

  5. docker elasticsearch Exception in thread main java.nio.file.NoSuchFileException: /usr/share/elasti

    问题 Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/ ...

  6. java.nio.file.NoSuchFileException异常解决

    项目场景: 线上环境做做数据导入操作 问题描述 项目中有一个数据导入的功能,在调用接口时,返回接口异常. 异常信息如下: 2022-09-01 15:13:16.530 [XNIO-1 task-30 ...

  7. Caused by: java.nio.file.FileSystemException: ..... : 打开的文件过多

    在高并发处理图片的时候出现这个错误. 18:29:37.993 [pool-9-thread-8] ERROR cn.bywin.cbvsp.service.ImageSevice - 切图出错!! ...

  8. 【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )

    文章目录 一. 报错信息 二. 解决方案 一. 报错信息 Flutter 混合开发项目 : 在 Android 项目中 , 嵌入了 Flutter 页面 , 不小心运行了下 Flutter 项目 , ...

  9. java.nio.file.FileSystemException: xxx: Too many open files

    前言 linux Redhat 7.0 spring boot 2.0.x jdk1.8 长时间运行程序后,出现java.nio.file.FileSystemException: xxx: Too ...

最新文章

  1. Python 三十大实践、建议和技巧
  2. Java并发编程(五)JVM指令重排
  3. python单例模式的五种实现方式
  4. java stringbuffer详解_Java常用类StringBuffer详解
  5. js三元运算符_这些优化技巧可以避免我们在 JS 中过多的使用 IF 语句
  6. php curl 获取 邮箱通讯录 sns(hotmail)
  7. android o x86,ubuntu-android--make: *** [out/host/linux-x86/o...
  8. CheckList 如何梳理可减少上线的验证时间(总结篇)
  9. 分享一个前后端分离的web项目(vue+spring boot)
  10. 【原】Mysql存储关联数组
  11. .net 发布程序时出现“类型ASP.global_asax同时存在于...”错误的解决办法
  12. 钉钉终于崩了!小学生欢呼庆祝解放,没想到没高兴多久就...
  13. spark学习-41-Spark的块传输服务BlockTransferService
  14. 拓端tecdat|Python在线零售数据关联规则挖掘Apriori算法数据可视化
  15. java的恐怖推理游戏_胆小勿入!盘点一下2019年所有的恐怖游戏
  16. Android 长截屏原理
  17. unity如何实现图片透视_unity 中是如何实现游戏人物换装的
  18. [裴礼文数学分析中的典型问题与方法习题参考解答]5.1.13
  19. 使用 Visual Studio 发布 .NET 控制台应用程序
  20. mosquitto 开启 TLS 问题总结

热门文章

  1. mc服务器音乐文件夹在哪,我的世界 自定义音乐添加方法 MC怎么自定义音乐
  2. 突破权限查看人人网特定用户所有相册 加密除外 的算法
  3. java题算工资_Java模版方法的小练习——工资系统
  4. 谷氨酸Glutamate
  5. 善用并行,让构建倍速进行
  6. 转载 Fluent中的压力分类
  7. 超声波测距仪编程_基于单片机的超声波测距仪设计
  8. 7行代码制作一个超声波测距仪
  9. Qt小程序之自绘震动铃铛提示控件
  10. windows中cmd和powershell设置代理