okHttp使用中报Could not find method java.nio.file.Files.newOutputStreamo警告问题
最近在使用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警告问题相关推荐
- 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 ...
- SonarQube启动报错:WrapperSimpleApp: Encountered an error running main: java.nio.file.AccessDeniedExcepti
SonarQube启动报错 可以查看日志,一般日志会记录错误的详细内容 执行以下命令,查看日志: cd /opt/sonarqube-6.7.6/logs tail -n 100 sonar.log ...
- jenkins node java.nio.file.FileSystemException:xxxx/xx/:Operation not permitted
jenkins node 报错:java.nio.file.FileSystemException:xxxx/xx/:Operation not permitted <===[JENKINS R ...
- Elasticsearch启动报错:Exception in thread “main“ java.nio.file.AccessDeniedException:
在elastic search的目录下进入bin目录 ,启动ES用命令 ./elasticsearch 然后返回错误 Exception in thread "main" java ...
- docker elasticsearch Exception in thread main java.nio.file.NoSuchFileException: /usr/share/elasti
问题 Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/ ...
- java.nio.file.NoSuchFileException异常解决
项目场景: 线上环境做做数据导入操作 问题描述 项目中有一个数据导入的功能,在调用接口时,返回接口异常. 异常信息如下: 2022-09-01 15:13:16.530 [XNIO-1 task-30 ...
- Caused by: java.nio.file.FileSystemException: ..... : 打开的文件过多
在高并发处理图片的时候出现这个错误. 18:29:37.993 [pool-9-thread-8] ERROR cn.bywin.cbvsp.service.ImageSevice - 切图出错!! ...
- 【错误记录】Flutter 混合开发报错 ( java.nio.file.FileSystemException: xxx/R.jar: 另一个程序正在使用此文件,进程无法访问。 )
文章目录 一. 报错信息 二. 解决方案 一. 报错信息 Flutter 混合开发项目 : 在 Android 项目中 , 嵌入了 Flutter 页面 , 不小心运行了下 Flutter 项目 , ...
- 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 ...
最新文章
- Python 三十大实践、建议和技巧
- Java并发编程(五)JVM指令重排
- python单例模式的五种实现方式
- java stringbuffer详解_Java常用类StringBuffer详解
- js三元运算符_这些优化技巧可以避免我们在 JS 中过多的使用 IF 语句
- php curl 获取 邮箱通讯录 sns(hotmail)
- android o x86,ubuntu-android--make: *** [out/host/linux-x86/o...
- CheckList 如何梳理可减少上线的验证时间(总结篇)
- 分享一个前后端分离的web项目(vue+spring boot)
- 【原】Mysql存储关联数组
- .net 发布程序时出现“类型ASP.global_asax同时存在于...”错误的解决办法
- 钉钉终于崩了!小学生欢呼庆祝解放,没想到没高兴多久就...
- spark学习-41-Spark的块传输服务BlockTransferService
- 拓端tecdat|Python在线零售数据关联规则挖掘Apriori算法数据可视化
- java的恐怖推理游戏_胆小勿入!盘点一下2019年所有的恐怖游戏
- Android 长截屏原理
- unity如何实现图片透视_unity 中是如何实现游戏人物换装的
- [裴礼文数学分析中的典型问题与方法习题参考解答]5.1.13
- 使用 Visual Studio 发布 .NET 控制台应用程序
- mosquitto 开启 TLS 问题总结