模块是用不兼容的 Kotlin 版本编译的.其元数据的二进制版本为 1.5.1,预期版本为 1.1.15 [英] Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15

查看:41
本文介绍了模块是用不兼容的 Kotlin 版本编译的.其元数据的二进制版本为 1.5.1,预期版本为 1.1.15的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Stripe 中,我的客户需要电子邮件和持卡人姓名,但在 com.stripe.android.view.CardMultilineWidget 中,Stripe 支付 UI 没有提供该选项.我想试试最新的条纹版本,

In stripe, my client wants email and card holder name, but stripe payment UI doesn't provide that option in com.stripe.android.view.CardMultilineWidget. I wanted to give a try with latest stripe version,

  1. 我使用的是条纹版 (14.1.1).所以更新到最新的(16.8.0)

  1. I was using stripe version(14.1.1). so updated it to latest one(16.8.0)

Build 向我展示了它不需要 minSdkVersion 19 的错误.在清单合并中需要 21.所以我将 minSdkVersion 更新为 21

Build showed me the error that it don't take minSdkVersion 19. requires 21 in manifest merger. So i updated minSdkVersion to 21

我有caches/transforms-2/files-2.1/4541b0189187e0017d23bbb0afebd16a/jetified-kotlin-stdlib-common-1.5.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: 模块的编译版本与 Kotlin 不兼容其元数据的二进制版本为 1.5.1,预期版本为 1.1.15.

I got caches/transforms-2/files-2.1/4541b0189187e0017d23bbb0afebd16a/jetified-kotlin-stdlib-common-1.5.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.15.

我厌倦了改变 gradle 版本.仍然得到同样的错误.需要一些帮助来解决不兼容的错误 &在条纹中添加电子邮件和持卡人姓名.谢谢.

I tired changing gradle version. still getting the same error. Need some help out there to solve the incompatible error & add email and card holder name in stripe. Thanks.

推荐答案

解决我的问题的是在 build.gradle

来自

ext.kotlin_version = '1.3.50'

ext.kotlin_version = '1.4.32'

或最新版本的 Kotlin 可用 并确保更新Android Studio 上的 Kotlin 版本也是如此

or what ever the latest version of Kotlin available and make sure to update Kotlin version on Android Studio as well

这篇关于模块是用不兼容的 Kotlin 版本编译的.其元数据的二进制版本为 1.5.1,预期版本为 1.1.15的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆