简体   繁体   English

无法提取aak @…上的信任管理器-PayPal-Android-SDK 2.13.3

[英]Unable to extract the trust manager on a.a.k@… - PayPal-Android-SDK 2.13.3

I recently updated my Song Scrapbook app to the latest version and also made sure to update all third-party APIs used by the app. 我最近将Song Scrapbook应用程序更新到最新版本,并且还确保更新了该应用程序使用的所有第三方API。 One such third-party tool is the PayPal Android SDK which I use to monetize my app since I live in a country where the Google Wallet Merchant service is currently not supported - which means I cannot use the Play Store in-app or once-off purchase systems in my app. 这样的第三方工具之一就是PayPal Android SDK,由于我居住在当前不支持Google Wallet Merchant服务的国家/地区,因此我使用它来通过自己的应用获利-这意味着我无法在应用内或一次性使用Play商店在我的应用中购买系统。

However, after updating the PayPal SDK to the latest version in my app (via mavenCentral) I get the following error in Android Studio (version: 1.5.1) everytime I want to execute a PayPal transaction: 但是,将PayPal SDK更新到我的应用程序中的最新版本后(通过mavenCentral),每次我想执行PayPal交易时,我在Android Studio(版本:1.5.1)中收到以下错误:

    debug W/paypal.sdk: PayPalService created. API:19 PayPalSDK/PayPal-Android-SDK 2.13.3 (Android 4.4.4; samsung GT-I9060I; )
    03-20 16:58:45.540 7804-7804/com.whitsoft.songscrapbook.debug W/ApplicationPackageManager: getCSCPackageItemText()
    03-20 16:58:45.550 7804-7804/com.whitsoft.songscrapbook.debug W/ApplicationPackageManager: getCSCPackageItemText()
    03-20 16:58:45.550 7804-7804/com.whitsoft.songscrapbook.debug I/dalvikvm: Could not find method com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable, referenced from method com.paypal.android.sdk.at.a
    03-20 16:58:45.550 7804-7804/com.whitsoft.songscrapbook.debug W/dalvikvm: VFY: unable to resolve static method 10405: Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable (Landroid/content/Context;)I
    03-20 16:58:45.610 7804-7804/com.whitsoft.songscrapbook.debug I/dalvikvm: Could not find method io.card.payment.CardIOActivity.checkSelfPermission, referenced from method io.card.payment.CardIOActivity.onCreate
    03-20 16:58:45.610 7804-7804/com.whitsoft.songscrapbook.debug W/dalvikvm: VFY: unable to resolve virtual method 13172: Lio/card/payment/CardIOActivity;.checkSelfPermission (Ljava/lang/String;)I
    03-20 16:58:45.820 7804-7843/com.whitsoft.songscrapbook.debug I/System: Loaded time zone names for "en" in 132ms (127ms in ICU)
    03-20 16:58:45.840 7804-7804/com.whitsoft.songscrapbook.debug W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x4168cbc0)
    03-20 16:58:45.840 7804-7804/com.whitsoft.songscrapbook.debug E/AndroidRuntime: FATAL EXCEPTION: main
                                                                            Process: com.whitsoft.songscrapbook.debug, PID: 7804
                                                                            java.lang.RuntimeException: Unable to start service com.paypal.android.sdk.payments.PayPalService@41e9c5a0 with Intent { cmp=com.whitsoft.songscrapbook.debug/com.paypal.android.sdk.payments.PayPalService (has extras) }: java.lang.IllegalStateException: Unable to extract the trust manager on a.a.k@41ff61a0, sslSocketFactory is class com.paypal.android.sdk.bn
                                                                                at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2987)
                                                                                at android.app.ActivityThread.access$2100(ActivityThread.java:166)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                at android.os.Looper.loop(Looper.java:136)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5584)
                                                                                at java.lang.reflect.Method.invokeNative(Native Method)
                                                                                at java.lang.reflect.Method.invoke(Method.java:515)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
                                                                                at dalvik.system.NativeStart.main(Native Method)
                                                                             Caused by: java.lang.IllegalStateException: Unable to extract the trust manager on a.a.k@41ff61a0, sslSocketFactory is class com.paypal.android.sdk.bn
                                                                                at a.ak.<init>(Unknown Source)
                                                                                at a.ak.<init>(Unknown Source)
                                                                                at a.am.b(Unknown Source)
                                                                                at com.paypal.android.sdk.bt.<init>(Unknown Source)
                                                                                at com.paypal.android.sdk.payments.PayPalService.a(Unknown Source)
                                                                                at com.paypal.android.sdk.payments.PayPalService.onStartCommand(Unknown Source)
                                                                                at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2970)
                                                                                at android.app.ActivityThread.access$2100(ActivityThread.java:166) 
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1380) 
                                                                                at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                                                at android.os.Looper.loop(Looper.java:136) 
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5584) 
                                                                                at java.lang.reflect.Method.invokeNative(Native Method) 
                                                                                at java.lang.reflect.Method.invoke(Method.java:515) 
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268) 
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084) 
                                                                                at dalvik.system.NativeStart.main(Native Method) 
     03-20 17:03:46.103 7804-7804/? I/Process: Sending signal. PID: 7804 SIG: 9

I know this problem is not caused by the device on which I tested the app - as I have tested this app on two very different devices (Samsung Grand Neo and Cubot X15) and both devices produced similar errors. 我知道此问题不是由测试该应用程序的设备引起的-因为我已经在两个截然不同的设备(三星Grand Neo和Cubot X15)上测试了此应用程序,并且两个设备均产生了类似的错误。 I tried googling the problem to try and solve the problem but after hours of searching found no solution. 我尝试使用Google搜索问题来尝试解决问题,但经过数小时的搜索后仍未找到解决方案。

Any assistance will be much appreciated. 任何帮助将不胜感激。 SilSur. SilSur。

So it took me roughly 5 hours to figure this one out - which I achieved through a step-by-step elimination of possible causes of the problem. 因此,我花了大约5个小时来解决这个问题-通过逐步消除问题的可能原因,我实现了这一目标。

Turns out the real problem was my haste in trying to update the app. 原来,真正的问题是我急于尝试更新应用程序。 The reason being that the PayPal SDK 2.13.3 version has a new rule in the 'proguard-rules.pro' file that is very important to include: 原因是PayPal SDK 2.13.3版本在'proguard-rules.pro'文件中有一条新规则,对于包含以下内容非常重要:

Rule as follows: 规则如下:

    # This is added for okhttp 3.1.2 bug fix as shown at https://github.com/square/okhttp/issues/2323
    -keepclassmembers class * implements javax.net.ssl.SSLSocketFactory {
         private javax.net.ssl.SSLSocketFactory delegate;
    }

This prevents the minify (obfuscation) process of Gradle from removing IMPORTANT code from a previous bug-fix in the PayPal SDK that caused problems with the secure layer socket factory. 这样可以防止Gradle的缩小(混淆)过程从PayPal SDK中先前的错误修复中删除重要代码,而该错​​误修复导致安全层套接字工厂出现问题。 So yeah - that was the fix: the updated app now works perfectly (just as required). 是的,这就是解决问题的方法:更新后的应用程序现在可以完美运行(仅根据需要)。

Lesson learnt: make sure your 'proguard-rules' are exactly as they are suppose to be! 经验教训:确保您的“保障规则”与预期相符!

Over & Out, SilSur. 一遍又一遍,SilSur。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是由Paypal rest-api支持的法国进行实时交易吗?paypal-android-sdk - is France supported by paypal rest-api for live transactions paypal-android-sdk 如何在cordova phonegap项目的libs文件夹中添加Paypal-android-sdk? - How to add Paypal-android-sdk in libs folder of cordova phonegap project? Android 11 - Unable to extract the trust manager on AndroidPlatform, sslSocketFactory is class com.android.org.conscrypt.OpenSSLSocketFactoryImpl - Android 11 - Unable to extract the trust manager on AndroidPlatform, sslSocketFactory is class com.android.org.conscrypt.OpenSSLSocketFactoryImpl Twitter按钮单击崩溃的应用程序? 无法在okhttp3.internal.Platform $ Android上提取信任管理器 - Twitter button click crashing app ? Unable to extract the trust manager on okhttp3.internal.Platform$Android java.lang.IllegalStateException:无法在 AndroidPlatform、sslSocketFactory 上提取信任管理器 - java.lang.IllegalStateException: Unable to extract the trust manager on AndroidPlatform, sslSocketFactory 无法启动Android SDK Manager - Unable to Launch Android SDK Manager 无法在Android SDK Manager中下载Android 2.3.3 - Unable to download Android 2.3.3 in Android SDK Manager 无法通过Android SDK Manager下载软件包 - Unable to Download Packages via Android SDK Manager 无法运行独立的Android SDK管理器 - unable to run standalone android sdk manager 无法在Android Studio中打开SDK管理器 - Unable to open sdk manager in android studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM