2. Copy the file IInAppBillingService.aidl to the directory at src/main/aidl/com.android.vending.billing. The structure of your project should be carrying out these two steps:
Note that not all android projects have the same structure. In the case of projects created by Android Studio, the AIDL files should be copied into the directory “java/aidl”. However, in older structures such as those created by Eclipse, the AIDL files should be copied in their respective directory addresses beside other Java files:
3. Add the following access permission to the AndroidManifest.xml of your app
<uses-permission android:name="ir.mservices.market.BILLING" />
4. Finally, your project can be built with no errors.