本文介绍了Paytabs android 集成 - 程序类型已经存在:okhttp3.Authenticator的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中集成了 PayTabs 支付方式它在我的调试版本上运行正确

I integrate PayTabs payment getaway in my project it run correct on my debugging version

然后在从我的项目生成签名 apk 时出现此错误

then get this error when generate signing apk from my project

生成签名apk时出现此错误

这是我的gradle依赖

and this is my gradle dependences

implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
implementation 'com.android.support:gridlayout-v7:26.1.0'
implementation 'com.android.support:multidex:1.0.1'

implementation 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
implementation 'com.google.code.gson:gson:2.6.1'
implementation 'com.github.fccaikai:AndroidPermissionX:1.0.0'
implementation 'com.googlecode.android-query:android-query:0.25.9'

implementation 'com.wang.avi:library:2.1.3'
implementation 'com.github.rrsystems:utilsplus:1.1.0'
implementation 'com.romandanylyk:pageindicatorview:0.0.7'
implementation 'com.github.ragunathjawahar:android-saripaar:android-saripaar-2.0.3'


implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'jp.wasabeef:picasso-transformations:2.2.1'
implementation 'com.github.chrisbanes:PhotoView:1.3.1'
implementation 'com.facebook.fresco:fresco:1.8.0'
implementation 'com.github.stfalcon:frescoimageviewer:0.5.0'

implementation 'com.intuit.sdp:sdp-android:1.0.4'
implementation 'com.intuit.ssp:ssp-android:1.0.4'
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
implementation 'io.nlopez.smartlocation:library:3.3.1'

implementation project(':PayTabs_SDK')

推荐答案

Paytabs SDK使用的是okhttp jar文件,可以通过配置排除okhttp

Paytabs SDK is using okhttp jar file, you can exclude okhttp by configuration

android {
   configurations {
        all*.exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    } 
}

https://github.com/JakeWharton/picasso2-okhttp3-downloader/issues/1#issuecomment-413993079

这篇关于Paytabs android 集成 - 程序类型已经存在:okhttp3.Authenticator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 13:15