Discuz! BBS

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 67|回复: 0

gradle 编译问题汇总

[复制链接]

393

主题

556

帖子

3294

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3294
发表于 2025-10-12 10:52:23 | 显示全部楼层 |阅读模式
1、
  1. C:/Users/Unicoder/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio-jvm/3.6.0/5600569133b7bdefe1daf9ec7f4abeb6d13e1786/okio-jvm-3.6.0.jar!/META-INF/okio.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.7.1.
复制代码

Kotlin版本兼容性问题:
降级okio依赖版本
  1. // 在build.gradle文件中使用兼容的okio版本
  2. implementation 'com.squareup.okio:okio-jvm:3.2.0'
复制代码


清理Gradle缓存重新构建
  1. gradle clean --refresh-dependencies
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|DiscuzX

GMT+8, 2025-10-25 08:51 , Processed in 0.014365 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表