Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IInAppBillingService.java does not generate Java file in Android Studio

Tags:

java

android

I am following this tutorial: https://developer.android.com/google/play/billing/billing_integrate.html#billing-permission

No InAppBillingActivity file is generating. I'm not sure why. I checked to make sure everything is placed correctly but no luck. Here is what my folder structure looks like: Click this for picture

Now I know there are similar questions like this but none of them were able to solve my problem. I have already imported googles billing library as well. No file generates when I run / build the app.

like image 661
coolpater Avatar asked Apr 22 '17 01:04

coolpater


2 Answers

The problem is that the docs are not very accurate in specifying where it is that you will find the java file that should be in the gen folder. I had faced the same problem and had broken my head over it, until I found that the .java file was infact generated and it was in the path :

\app\build\generated\source\aidl\debug\com\android\vending\billing\IInAppBillingService.java

Its not a headache issue and your code runs smoothly itself without any interventions required. Hope this helps!

enter image description here

like image 149
Kaushik NP Avatar answered Oct 15 '22 00:10

Kaushik NP


In android studio double click on your package name:

enter image description here

click in New and then on AIDL

enter image description here

Hope it helps

like image 34
Martin De Simone Avatar answered Oct 15 '22 01:10

Martin De Simone