zyra / cordova-plugin-stripe

A Cordova plugin that lets you use Stripe's Native SDKs for Android and iOS.
MIT License
93 stars 57 forks source link

no suitable constructor found for Stripe(no arguments) #8

Closed Deadsoil closed 7 years ago

Deadsoil commented 7 years ago

I just started getting this error randomly when trying to build my project. Any ideas? never had the issue before.

platforms/android/src/com/zyramedia/cordova/stripe/CordovaStripe.java:24: error: no suitable constructor found for Stripe(no arguments) stripeObject = new Stripe()

constructor Stripe.Stripe(Context) is not applicable
  (actual and formal argument lists differ in length)
constructor Stripe.Stripe(Context,String) is not applicable
  (actual and formal argument lists differ in length)
ihadeed commented 7 years ago

You're getting this error because Stripe updated their SDK, I will need to modify the code here to work with their latest SDK.

For now, I committed a quick hot fix to get your app working: https://github.com/zyramedia/cordova-plugin-stripe/commit/bb2d248e64ccc5062f38c4f3786b89481976c828

Just uninstall the plugin and re-install it from the repository URL instead. I will keep this issue open and let you know once the issue is fully resolved.

brianlittmann commented 7 years ago

You can also just update the .gradle file in platforms/android/cordova-plugin-stripe/ if you're wanting to get up and running locally.

Deadsoil commented 7 years ago

That's what I ended up doing. Cheers guys