報(bào)錯(cuò)信息如下:
/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.
?
問(wèn)題分析:
這個(gè)是引用的某些庫(kù)用了不兼容的kotlin版本,嘗試將kotlin插件關(guān)閉,發(fā)現(xiàn)無(wú)法啟動(dòng)studio了,然后在android studio的配置文件夾里面刪除了禁用的kotlin插件才重新啟動(dòng)。
解決方法:
打開(kāi)android studio設(shè)置 (setting)找到Kotlin Compiler
將對(duì)應(yīng)版本改成需要的版本,順利實(shí)現(xiàn)打包文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-824018.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-824018.html
到了這里,關(guān)于android studio 打包簽名apk時(shí)報(bào)kotlin版本錯(cuò)誤的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!