我在我的应用程序中集成了贝宝服务,使用
try {
//PayPal
Intent intent = new Intent(VODActivity.this, PayPalService.class);
intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);
startService(intent);
//PayPal
} catch (Exception e) {
e.printStackTrace();
}
应用程序 gradle 文件如下所示:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'me.drakeet.materialdialog:library:1.2.2'
compile 'com.mcxiaoke.volley:library:1.0.17'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'se.simbio.encryption:library:1.2.0'
compile 'com.daasuu:animateHorizontalProgressBar:0.2.0'
compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') {
transitive = true;
}
// Loader
compile 'com.wang.avi:library:1.0.0'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.michaelye.easydialog:easydialog:1.4'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
**compile('com.paypal.sdk:paypal-android-sdk:2.13.0') {
exclude group: 'io.card'//disable the card io feature for scanning card
}**
compile 'com.google.apis:google-api-services-youtube:v3-rev171-1.22.0'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/mediaplayersdk.jar')
compile 'com.google.android.gms:play-services-gcm:8.4.0'
}
直到昨天晚上,它一直在工作。但突然它因“致命异常:java.lang.NoClassDefFoundError okio.Okio”而崩溃
任何人都可以提供帮助...在此先感谢。