In App purchase Android Path issue

Hi @nicraboy,

I am unable to find the location of cloned project of In App purchase. It is throwing below error.

npm ERR! addLocal Could not install /XXXXX/Desktop/AndroidInAppBilling/v3.0.2
Fetching plugin “/XXXXX/Desktop/AndroidInAppBilling/v3.0.2” via cordova plugins registry
npm ERR! addLocal Could not install /XXXXX/Desktop/AndroidInAppBilling/v3.0.2

Could you please help me. I am new to Android and ionic. Thanks in Advance

Can you give me more information?

What plugin are you trying to use? What commands are you using?

The more information you can give me the better. Also, if you’re new to Ionic, I think IAB is the last thing you should be worrying about. You should learn the framework and Angular first.

You might check out this beginner course:

Best,

Sure @nicraboy,

I am using the following command to install the plugin for in-app-purchase android
git clone https://github.com/poiuytrez/AndroidInAppBilling.git

I cloned this project to my Desktop, and I am going to my project directory in my terminal and adding cordova plugin by using the following command.

cordova plugin add /Users/XXXXXX/Desktop/AndroidInAppBilling/v3.0.2
and it is showing the below ERROR

npm ERR! addLocal Could not install /XXXXX/Desktop/AndroidInAppBilling/v3.0.2
Fetching plugin “/XXXXX/Desktop/AndroidInAppBilling/v3.0.2” via cordova plugins registry
npm ERR! addLocal Could not install /XXXXX/Desktop/AndroidInAppBilling/v3.0.2

Unable to locate the path. And my doubt is, Is the path correct what I have mentioned for the AndroidInAppBilling folder??

Please let me know if you have any concerns.
Thanks in Advance

Directory v3.0.2 does not exist. Add the plugin via the plugin README.