The following method did not exist: kotlin.collections.ArraysKt.copyInto([B[BIII)[B
问题描述
在项目中使用阿里云的datahub时,由于依赖引用了okhttp,导致项目运行不了。
版本
IDEA: 2021.1.2
okhttp: 3.14.2
报错
Description:An attempt was made to call a method that does not exist. The attempt was made from the following location:okio.Segment.writeTo(Segment.kt:169)The following method did not exist:kotlin.collections.ArraysKt.copyInto([B[BIII)[BThe method's class, kotlin.collections.ArraysKt, is available from the following locations:jar:file:/xx/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.71/kotlin-stdlib-1.2.71.jar!/kotlin/collections/ArraysKt.classIt was loaded from the following location:file:/xx/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.71/kotlin-stdlib-1.2.71.jarAction:Correct the classpath of your application so that it contains a single, compatible version of kotlin.collections.ArraysKt
原因及解决方法
1.springboot版本问题
升级版本,2.1.1不行。但是2.2.4的可以
2.和IDEA有关,引入kotlin依赖
<dependency><groupId>org.jetbrains.kotlin</groupId><artifactId>kotlin-stdlib</artifactId><version>1.3.70</version></dependency>
The following method did not exist: kotlin.collections.ArraysKt.copyInto([B[BIII)[B相关推荐
- Error: <spyOn> : handleError() method does not exist
单元测试出错: Error: : handleError() method does not exist Usage: spyOn(, ) at at UserContext.apply (http: ...
- springcloud-eureka启动报错,提示The following method did not exist: org.springframework.boot.actuate.health
报错信息汇总 文章目录 报错信息汇总 1.springcloud-eureka启动报错,提示The following method did not exist: org.springframewor ...
- Handler dispatch failed; nested exception is java.lang.NoSuchFieldError: TLS_ECDHE_ECDSA_WITH_CHACHA
产生问题,web3j 5.0.0高版本应用okhttp版本过低出现: 替换更高级的okhttp <dependency><groupId>com.squareup.okhttp ...
- 央视影音大屏版apk下载_cboxtv_2.2.0(央视影音大屏版).apk
文件列表 文件名 校验码 AndroidManifest.xml 0x779a5df0 META-INF/CERT.RSA 0x1ac0014d META-INF/CERT.SF 0x7c116f97 ...
- 报错:An attempt was made to call a method that does not exist. The attempt was made from the following
今天在学习thymeleaf时,运行springboot报如下错误: "C:\Z cap\jdk8u91\bin\java.exe" -XX:TieredStopAtLevel=1 ...
- Kotlin极简教程:第10章 Kotlin与Java互操作
Kotlin is 100% interoperable with Java™ and Android™ 在前面的章节中,我们已经学习了Kotlin的基础语法.类型系统.泛型与集合类.面向对象与函数式 ...
- Kotlin极简教程:第5章 集合类
原文链接:https://github.com/EasyKotlin 本章将介绍Kotlin标准库中的集合类,我们将了解到它是如何扩展的Java集合库,使得写代码更加简单容易.如果您熟悉Scala的集 ...
- 教你如何完全解析Kotlin中的注解
简述: 从这篇文章将继续开始探索Kotlin中的一些高级的内容,之前有着重探讨了Kotlin的泛型以及泛型型变等内容.现在我们一起来看下Kotlin中的注解.Kotlin中的注解是100%与Java注 ...
- 《Kotlin 极简教程 》第5章 集合类
<Kotlin 极简教程 >第5章 集合类 <Kotlin极简教程>正式上架: 点击这里 > 去京东商城购买阅读 点击这里 > 去天猫商城购买阅读 非常感谢您亲爱的 ...
- 【Kotlin】Kotlin 教程
kotlin 教程 前言 什么是kotlin 什么是Java? kotlin 与 Java有什么区别 kotlin 的特点 Java的特点 kotlin 的历史 JAVA的历史 kotlin 的优势 ...
最新文章
- SLAM精度测评——rpg_trajectory_evaluatio
- 循序渐进Python3(七) -- 2-- 面向对象进阶
- opencv学习笔记7:图像加法与图像融合
- 又涨了?2021 年 3 月程序员工资统计新出炉
- 你在滥用Python吗?初学者常会遇到的5个情景
- LightGBM(lgb)详解
- 华为新系统鸿蒙有哪些手机_如今鸿蒙手机之后,华为启用新系统,谷歌微软措手不及...
- 将Markdown嵌入到我们的HTML页面中
- ActiveRecord::Fixture::FixtureError: table users has no column named activated_at.
- ln -s 一定要用绝对路径
- jasypt加密敏感配置信息出现Encryption raised an exception
- 关于数据结构中的叶节点和二度节点的关系(通俗的理解)。
- 原像、第二原像、碰撞;随机预言机;生日攻击
- PNG 图片压缩原理解析
- os.path.isfile() 判断问题
- CentOS网络时钟同步协议-- NTP, PTP
- 高中数学基础10:二项分布与二项式定理
- 【淘宝商品】获取淘宝商品ID、获取淘宝商品详情
- win10系统如何连接宽带连接服务器,win10宽带连接在哪_win10设置宽带连接的方法...
- 8、哈希表(Hash)
热门文章
- 13.包装类和字符串
- 网络广告CPS/CPC/CPV/CPM/CPA分别是什么意思
- 网络广告中,CPC、CPA、CPM 的定义各是怎样的?
- matlab统计颗粒数,一种基于Matlab的谷物颗粒计数方法
- hdu2586How far away ?
- redis-trib.rb和redis-cli部署redis主从集群的异同
- 安卓插件化框架Shadow原理分析
- 单片机C51产生正弦波可控制周期(通过计时器)
- NLP(自然语言处理)基本入门之分词操作
- 【集合论】集合概念与关系 ( 集族 | 集族示例 | 多重集 )