AlexDisler / cordova-plugin-inapppurchase

A lightweight cordova plugin for in app purchases on iOS/Android
315 stars 192 forks source link

Use this plugin with Cordova > 5.0.0 #47

Open htsnet opened 7 years ago

htsnet commented 7 years ago

I am trying to use this plugin and I am receiving a error about Cordova version.

https://github.com/AlexDisler/cordova-plugin-inapppurchase.git","issue":"https://github.com/AlexDisler/cordova-plugin-inapppurchase/issues","keywords":["cordova","phonegap","ionic","purchase","storekit","ios","android","play","appstore"]}},"_getAllCache":{}},"nohooks":["."]}" Installing "cordova-plugin-inapppurchase" for android Running command: .../AppAnalyzer/platforms/android/cordova/version Command finished with error code 0: .../AppAnalyzer/platforms/android/cordova/version Failed to install 'cordova-plugin-inapppurchase':CordovaError: Plugin doesn't support this project's cordova version. cordova: 4.1.1, failed version requirement: >=5.0.0

I do not tested because I couldn´t generate the APK.

Is there any solution for that? Thanks.

s-muntazir commented 7 years ago

i am getting the same issue...

biesbjerg commented 7 years ago

Seems like you guys just need to update your cordova-android?

cordova platform remove android && cordova platform add android@latest should re-install latest version (5.2.1 as of now) fulfilling the requirement.