Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

Class not found when unmarshalling: com.braintreepayments.api.dropin.DropInRequest? #62

Open lopezpagan opened 6 years ago

lopezpagan commented 6 years ago

I'm using Braintree SDK with Paypal Checkout with the plugin for Android.

When I use the sandbox, everything runs well, but when we use the production the Paypal Payment View doesn't show up. I can see the drop-in with Paypal option, when I select it, It hides the drop-in view.

In the app console.log, I get this message:

"Result was not RESULT_CANCELED, but no PaymentMethodNonce was returned from Braintree SDK."

Error on Android Studio:

08-16 16:53:17.695 3770-8934/? E/Parcel: Class not found when unmarshalling: com.braintreepayments.api.dropin.DropInRequest java.lang.ClassNotFoundException: com.braintreepayments.api.dropin.DropInRequest at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:400) at android.os.Parcel.readParcelableCreator(Parcel.java:2517) at android.os.Parcel.readParcelable(Parcel.java:2471) at android.os.Parcel.readValue(Parcel.java:2374) at android.os.Parcel.readArrayMapInternal(Parcel.java:2727) at android.os.BaseBundle.unparcel(BaseBundle.java:269) at android.os.BaseBundle.getString(BaseBundle.java:992) at android.content.Intent.getStringExtra(Intent.java:6743) at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:336) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1097) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5772) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5577) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:176) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3579) at android.os.Binder.execTransact(Binder.java:573) Caused by: java.lang.ClassNotFoundException: com.braintreepayments.api.dropin.DropInRequest at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:1346) at java.lang.BootClassLoader.loadClass(ClassLoader.java:1406) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at java.lang.Class.classForName(Native Method)  at java.lang.Class.forName(Class.java:400)  at android.os.Parcel.readParcelableCreator(Parcel.java:2517)  at android.os.Parcel.readParcelable(Parcel.java:2471)  at android.os.Parcel.readValue(Parcel.java:2374)  at android.os.Parcel.readArrayMapInternal(Parcel.java:2727)  at android.os.BaseBundle.unparcel(BaseBundle.java:269)  at android.os.BaseBundle.getString(BaseBundle.java:992)  at android.content.Intent.getStringExtra(Intent.java:6743)  at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:336)  at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1097)  at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5772)  at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5577)  at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:176)  at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3579)  at android.os.Binder.execTransact(Binder.java:573)  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available 08-16 16:53:17.696 3770-8934/? W/Bundle: Failed to parse Bundle, but defusing quietly android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.braintreepayments.api.dropin.DropInRequest at android.os.Parcel.readParcelableCreator(Parcel.java:2545) at android.os.Parcel.readParcelable(Parcel.java:2471) at android.os.Parcel.readValue(Parcel.java:2374) at android.os.Parcel.readArrayMapInternal(Parcel.java:2727) at android.os.BaseBundle.unparcel(BaseBundle.java:269) at android.os.BaseBundle.getString(BaseBundle.java:992) at android.content.Intent.getStringExtra(Intent.java:6743) at com.android.server.am.ActivityStarter.startActivityLocked(ActivityStarter.java:336) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1097) at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:5772) at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:5577) at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:176) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3579) at android.os.Binder.execTransact(Binder.java:573) 08-16 16:53:17.701 3770-8934/? I/ActivityManager: START u0 {act=null typ=null flg=0x0 cmp=ComponentInfo{com.propulsa.claimeye/com.braintreepayments.api.dropin.DropInActivity}} from uid 10424 on display 0 08-16 16:53:17.735 3770-8934/? D/ActivityManager: resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{2bc6520d0 #356 A=com.propulsa.claimeye U=0 StackId=1 sz=2} next=ActivityRecord{b2ae943d0 u0 com.propulsa.claimeye/com.braintreepayments.api.dropin.DropInActivity t356} mFocusedStack=ActivityStack{63e9ea1d0 stackId=1, 8 tasks} 08-16 16:53:17.747 9563-9757/com.propulsa.claimeye W/PluginManager: THREAD WARNING: exec() call to BraintreePlugin.presentDropInPaymentUI blocked the main thread for 96ms. Plugin should use CordovaInterface.getThreadPool().

IONIC Info:

cli packages: (/usr/local/lib/node_modules) @ionic/cli-utils : 1.19.2 ionic (Ionic CLI) : 3.20.0

global packages: cordova (Cordova CLI) : 7.1.0

local packages: @ionic/app-scripts : 3.1.9 Cordova Platforms : android 6.4.0 Ionic Framework : ionic-angular 3.9.2

System: Android SDK Tools : 26.1.1 ios-deploy : 1.9.2 ios-sim : 5.0.13 Node : v8.9.4 npm : 2.15.12 OS : macOS High Sierra Xcode : Xcode 9.4.1 Build version 9F2000

Environment Variables: ANDROID_HOME : /Users/lopezpagan/Library/Android/sdk/

Misc: backend : legacy