Error in Adding the In-app Billing Library

StupidCodeGenerator picture StupidCodeGenerator · Dec 18, 2012 · Viewed 24.1k times · Source

I was doing this following these steps as mentioned in the link.

  1. Copy the IInAppBillingService.aidl file to your Android project.

Answer

j2emanue picture j2emanue · Jan 23, 2013

right click on the head of the project and create a new PACKAGE ... call the package com.android.vending.billing ....drop the aidl file in there to quiet the error.

Some food for thought: for those with an interest - when using someone's aidl file, the package name for both apps must be the same. google used com.android.vending.billing as their package name for their billing aidl interface, so you MUST also use the same package name in your app. This is the rule when using aidl.