poiuytrez / AndroidInAppBilling

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

in full example , click init alert "ERROR: Class not found" #25

Closed mcgarychan closed 10 years ago

mcgarychan commented 11 years ago

Hello , Thank You for your great efforts and work in this plugins . i am a new one who using phonegap . i got a headache about the alert of "ERROR: Class not found".

i have change the the following code In InAppBillingPlugin.java "package com.smartmobilesoftware.inappbilling;" change to "package android.com.smartmobilesoftware.inappbilling;"

then build an apk and install in nexus 7 , click "initalize billing plugin" , it alerts "ERROR : Class not found"

i am using lastest version of Cordova and also setup the merchant in development console.

would you please let me know how to fix this. THANK YOU VERY MUCH

mcgarychan commented 11 years ago

it is my mistake , i fixed this already.

i need to modify both config.xml and cordova_plugin.js from "com.smartmobilesoftware.inappbilling" to "android.com.smartmobilesoftware.inappbilling"

this plugin work perfectly .. thank you very very much