gpt4 book ai didi

android - 使用Eclipse和Gradle的Stripe-android

转载 作者:行者123 更新时间:2023-12-03 05:53:24 24 4
gpt4 key购买 nike

我有这个 gradle文件(这是整个文件):

apply plugin: 'java'

repositories {
jcenter()
}

dependencies {
compile 'com.stripe:stripe-android:5.0.0'
}

}

我正在运行“ gradle build ”,它正在构建中,但是在我的java文件中,我无法引用新库。我将此行添加到源(java)文件中:
import com.stripe.android
我收到此错误:“导入com.stripe.android无法解析”

最佳答案

不幸的是,由于该库不再支持Eclipse的使用而发生了问题。

documentation excerpt:

Eclipse

Note - as Google has stopped supporting Eclipse for Android Development, we will no longer be actively testing the project's compatibility within Eclipse. You may still clone and include the library as you would any other Android library project.



因此,您需要手动克隆和包含该库,或者将代码迁移到Android Studio。

关于android - 使用Eclipse和Gradle的Stripe-android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46342575/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com