問(wèn)題
今天在啟動(dòng)項(xiàng)目時(shí),項(xiàng)目啟動(dòng)不起來(lái),報(bào)錯(cuò):Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.13.
如下圖所示:
分析
經(jīng)過(guò)分析,發(fā)現(xiàn)是ideade Kotlin版本過(guò)低導(dǎo)致,有兩種解決方式:
????一是將項(xiàng)目中的 Kotlin 版本降低;
????二是升級(jí)idea中 Kotlin 的插件版本
我采用的是在 idea 升級(jí) Kotlin 插件
升級(jí)kotlin插件版本
1、升級(jí)方法1
打開(kāi)kotlin面板
Windows系統(tǒng):File -> settings -> Languages & Frameworks -> Kotlin
點(diǎn)擊 Check again
然后點(diǎn)擊 install。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-801650.html
安裝成功后,重啟 idea文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-801650.html
到了這里,關(guān)于解決Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of ..的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!