android studio 打包签名apk时报kotlin版本错误

报错信息如下:

/Users/abbb/Library/Android/sdk/caches/transforms-3/572ca993caa0789f4046529ddf3eacd2/transformed/jetified-BaseRecyclerViewAdapterHelper-4.0.1/jars/classes.jar!/META-INF/com.github.CymChad.brvah.kotlin_module: 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.

问题分析:

这个是引用的某些库用了不兼容的kotlin版本,尝试将kotlin插件关闭,发现无法启动studio了,然后在android studio的配置文件夹里面删除了禁用的kotlin插件才重新启动。

解决方法:

打开android studio设置 (setting)找到Kotlin Compiler

将对应版本改成需要的版本,顺利实现打包

相关推荐
EngZegNgi1 小时前
安卓应用启动崩溃的问题排查记录
android·crash·启动崩溃
火柴就是我2 小时前
每日见闻之Container Decoration
android·flutter
天枢破军2 小时前
【AOSP】解决repo拉取提示无法连接android.googlesource.com
android
whysqwhw2 小时前
OkHttp之AndroidPlatform类分析
android
XiaolongTu2 小时前
Kotlin Flow详述:从一个“卡顿”问题到线程切换的本质
android·面试
Kapaseker2 小时前
全网最详细的Compose Stable讲解,你一定要看
android
solo_992 小时前
使用Android Studio 聊微信
android
whysqwhw2 小时前
OkHttp PublicSuffix包的平台化设计分析
android
whysqwhw2 小时前
Conscrypt 源码分析全图解(附精要讲解)
android
一只柠檬新3 小时前
Kotlin object单例到底是懒汉式还是饿汉式
android·kotlin