我正在整合VISA结帐使用以下链接付款:Visa Checkout Integration in Android Studio
。在集成VISA结账时出现错误
我的项目很重。我已从Eclipse
导入它,其中已包含许多libraries
。虽然整合VISA结账,我加在gradle这个文件下面,及其相关的库:
compile(name:'VisaCheckout-Android-SDK-4.3', ext:'aar')
当我之前没有任何库执行this代码,我没有得到任何错误。
然而,当我在我现有的应用程序在运行Lollipop
的代码,我得到了一个空白页面不上单击硬件后退按钮甚至做出回应。
我得到一些不寻常的错误,如:
事件类com.visa.internal.ˌ
没有为事件类de.greenrobot.event注册用户注册用户号.NoSubscriberEvent
先前失败的一流拒绝重新初始化的java.lang.Class
在Kitkat
中,该应用崩溃,显示为java.lang.NoClassDefFoundError: com.google.android.gms.analytics.GoogleAnalytics
,(因为Google Analytics已集成到我的项目中)。
这是我的gradle这个文件:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.fitcompany.fitness_enthusiasts"
minSdkVersion 11
targetSdkVersion 20
}
buildTypes {
release {
multiDexEnabled true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
repositories {
flatDir { dirs 'libs'}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile project(':slidingMenu')
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.android.gms:play-services:4.0.30'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.paypal.sdk:paypal-android-sdk:2.14.2'
compile(name:'VisaCheckout-Android-SDK-4.3', ext:'aar')
compile files('libs/volley.jar')
compile files('libs/gson-2.3.1.jar')
compile files('libs/HockeySDK-3.5.0.jar')
compile files('libs/httpclient-android-4.3.3.jar')
compile files('libs/ksoap2-android-assembly-3.1.0-jar-with-dependencies.jar')
compile files('libs/libGoogleAnalyticsServices.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
}
我libs文件夹包含以下内容:
- eventbus-2.4.0.jar
- GSON-2.3.1.jar
- HockeySDK -3.5.0.jar
- ksoap2-机器人组装-3.1.0-罐与 - dependencies.jar
- libGoogleAnalyticsServices.jar
- okhttp-2.5.0.jar
- 改装的1.9.0.jar
- volley.jar
- YouTubeAndroidPlayerApi.jar
- VisaCheckout-Android的SDK-4.3.aar