Taracque / cordova-plugin-braintree

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

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

Open jamesdixon opened 6 years ago

jamesdixon commented 6 years ago

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 commented 6 years ago

@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 commented 6 years ago

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

jamesdixon commented 6 years ago

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 commented 6 years ago

@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

adamfellon commented 6 years ago

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

jamesdixon commented 6 years ago

@adamfellon thanks! have a great holiday!

jamesdixon commented 6 years ago

@Taracque any thoughts on this? Thank you!

jamesdixon commented 6 years ago

@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

codinronan commented 6 years ago

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