android - 使用Eclipse和Gradle的Stripe-android

标签 android eclipse gradle stripe-payments

我有这个 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/

相关文章:

eclipse - 哪里可以下载jetty源码?

android - 错误 :The "android" command is no longer included in the SDK. 对它的任何引用(例如第三方插件)都应该被删除

android - 在菜单项的右侧显示抽屉菜单图标

java - 在 AVD 中,我得到不幸的是,PruebaNumero3 已停止工作

Android 将项目添加到仅包含特定项目的 Listview.setAdapter

eclipse - 如何使Eclipse保持控制台输出?

java - 如何使用 Gradle 发布插件将 proguard JAR 发布为 Maven Artifact

android - Gradle DSL 方法未找到 : 'compile()' - Dependencies are in Module level build. gradle 已经

Android Studio 没有从 Java 模块中获取 AutoParcelGson (AutoValue) 类

java - 无法从 Android 中的数据库填充 listView 中的数据