poiuytrez / AndroidInAppBilling

Android App Billing plugin for Cordova
174 stars 144 forks source link

Index 1 out of range [0..1) #93

Open ghost opened 9 years ago

ghost commented 9 years ago

I'm getting this error Index 1 out of range [0-1) when trying to make in-app purchase. I'm running android lolipop. The app is compiled with version 21 of sdk.

Fortuitous commented 9 years ago

Same here. Android 5.1, PhoneGap Build. Using the demo code.
My app loads. When I click Initialize The Billing Plugin, I get an alert:

Error: Index 1 out of range [0..1)

The alert indicates to me that I'm loading the plugin and getting the error handler. Anyone have ideas?

alurosu commented 9 years ago

Same issue .. did you find any solution?

ghost commented 9 years ago

I have not upgraded the Android SDK. Kept at kitkat and not upgraded the version to lollipop. It is working with kitkat.

aphil commented 8 years ago

I'm having the same problem, any solution?

aphil commented 8 years ago

I was able to make the init call work by adding a sku as the fourth parameter.