I am trying to use in app product purchase in Android App, I tried to put IInAppBillingService.aidl in many places but no one generates the Java file , here is my structure of App:
Could someone help me to find where I am wrong ?
Note: I am use using Android Studio.
There is some misplacement of directories in your project as shown in attached screenshot.
Your main directory should be inside the src directory and IInAppBillingService.aidl
must be on the below mentioned path
/src/main/aidl/com/android/vending/billing/IInAppBillingService.aidl
so create a directory inside your main and then create the package as mentioned and put your .aidl file inside.
Make the necessary changes and sync Your project with gradle.
I was looking for it on the aidl folder which was wrong assumption.The java file will generate on the build, source, aidl folder.. hope this helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With