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

I was using Stripe version (14.1.1). So I updated it to the latest one (16.8.0) The build showed me the error that it doesn't take minSdkVersion 19. It requires 21 in manifest merger. So I updated minSdkVersion to 21. 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版本,但我仍然得到相同的错误。如何解决不兼容的错误,在Stripe中添加邮箱和持卡人姓名?


当前回答

我在Flutter中遇到了同样的问题,我通过转到: 文件>设置>插件@Muzzamil说,我检查了我的IDE中的Kotlin版本,并简单地将ext.kotlin_version(即1.6.10)中的值替换为该值

ext.kotlin_version = '1.6.10'

其他回答

确保你的IDE的Kotlin版本与你在gradle中声明的版本相同。构建文件。

我已经设置了minsdk 24并重新启动Android Studio,其工作正常。

在我的案例中

其元数据的二进制版本为1.7.1,预期版本为1.5.1

得到build.gradle(project)中的(dependencies)从1.5转换。X (X)在这里是(20)

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20"

对1.7.10

 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"

转到文件构建。Gradle,改变kotlin的版本。 万一在我的颤振项目我打开构建。Gradle和changed

`ext.kotlin_version = '1.5.30'` 

来 Ext.kotlin_version = '1.6.0'

Here

buildscript {
ext.kotlin_version = '1.6.0'

repositories {
    google()
    jcenter()
}

dependencies {
    classpath 'com.android.tools.build:gradle:4.1.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    
}

}


然后保存并执行

快跑,快跑

对我来说没问题。

我在IntelliJ IDEA的Maven项目中遇到过这个错误。 解决方案是关闭IntelliJ IDEA中的Kotlin插件,如果你的项目中没有使用Kotlin。

至:

菜单文件→设置→插件

点击复选框关闭Kotlin插件。在这里看到的: