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

ERROR: AuthenticationError is never thrown in the body ANDROID #23

Closed virtapoika closed 7 years ago

virtapoika commented 7 years ago

Hi, I've got the following error

`/platforms/android/src/com/zyramedia/cordova/stripe/CordovaStripe.java:59: error: exception AuthenticationException is never thrown in body of corresponding try statement } catch (AuthenticationException e) { ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error

FAILURE: Build failed with an exception.

When trying to build android for the project. iOS and browser work fine! Any ideas?

ihadeed commented 7 years ago

Thanks for reporting this.

I updated the SDK versions recently, looks like I missed a change. I will fix this soon.

In the meanwhile you can use older versions of this plugin.

ihadeed commented 7 years ago

This is fixed now, run the following commands to ensure you have the latest version:

cordova plugin rm cordova-plugin-stripe
cordova plugin add cordova-plugin-stripe@latest
virtapoika commented 7 years ago

Thanks! Awesome work!

Ibby Hadeed notifications@github.com kirjoitti 6.7.2017 kello 9.47:

cordova plugin add cordova-plugin-stripe@latest