Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Image Added

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:
src/com/android/vending/licensing

3. Add the following access permission to the AndroidManifest.xml of your app

Code Block
<uses-permission android:name="ir.mservices.market.BILLING" />


4. Finally, your project can be built with no errors.

...