cordova-plugin-braintree icon indicating copy to clipboard operation
cordova-plugin-braintree copied to clipboard

android: ClassNotFoundException: com.braintreepayments.api.dropin.DropInRequest

Open jamesdixon opened this issue 7 years ago • 9 comments

Hi,

When the drop-in UI attempts to load on android, it crashes my app. Here's the error:

java.lang.ClassNotFoundException: com.braintreepayments.api.dropin.DropInRequest

I've pulled the latest from master. Running cordova-android 6.4 and Ionic 1.3.5.

Everything works great on iOS.

Thanks in advance!

jamesdixon avatar Dec 21 '17 22:12 jamesdixon

@Taracque I can confirm that this starts in b89c031. It appears related to the drop-in ui upgrade. Reverting to a2b9107 works as expected.

jamesdixon avatar Dec 21 '17 23:12 jamesdixon

@Taracque I take it back -- still broken in a2b9107. Any thoughts on the issue?

jamesdixon avatar Dec 22 '17 23:12 jamesdixon

One interesting thing is that the drop-in UI displays, but as soon as I tap the button to enter a credit card, the app crashes. In thelogs, I see the same ClassNotFoundException.

jamesdixon avatar Dec 22 '17 23:12 jamesdixon

@adamfellon have you run into this? If things are working as expected for you, can you by any chance share your environment info with me (cordova version, etc)? The only thing that seems to be different for me from when this was previously working is that I'm using the SDK provided by Android studio. It almost seems like Gradle isn't pulling the libraries in, but I'm unsure. Thanks in advance for any info/feedback

jamesdixon avatar Dec 23 '17 02:12 jamesdixon

Our team pulled back on the project that was using the plugin, so I haven't looked at it in a while. But I can take a look after the holidays

adamfellon avatar Dec 23 '17 04:12 adamfellon

@adamfellon thanks! have a great holiday!

jamesdixon avatar Dec 23 '17 05:12 jamesdixon

@Taracque any thoughts on this? Thank you!

jamesdixon avatar Jan 15 '18 18:01 jamesdixon

@codinronan have you by any chance run into this? I was hoping by using your fork, this would magically resolve itself, but for some reason it's still happening. I'm running Cordova 7 and cordova-android 7 now. Would appreciate any insights you may have as I don't know Android very well

jamesdixon avatar Feb 19 '18 20:02 jamesdixon

Hey @jamesdixon got your message, I replied over at the braintree repo :) https://github.com/braintree/braintree-android-drop-in/issues/57#issuecomment-366803382

codinronan avatar Feb 19 '18 21:02 codinronan