Skip to content

Android 版本编译失败,报错 Module was compiled with an incompatible version of Kotlin.

管宜尧 edited this page Sep 22, 2023 · 1 revision

错误详情

Android 编译报错如下:

Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0
image

解决方案

在 Android Studio 中,修改以下配置

image

即使是 1.9 版本也不行,要改为 1.8。