IInAppBillingService.java does not create Java file in Android Studio

I follow this guide: https://developer.android.com/google/play/billing/billing_integrate.html#billing-permission

There is no InAppBillingActivity file. I do not know why. I checked that everything was correct, but no luck. Here's what my folder structure looks like: Click on the image

Now I know that there are similar questions, but none of them could solve my problem. I have already imported googles billing library. When starting / creating an application, a file is not created.

+5
source share
3 answers

The problem is that the documents are not very accurate in determining where exactly you will find the java file, which should be in the gen folder. I ran into the same problem and broke my head over it until I found that the .java file was spawned and it was on the way:

\ application \ assembly \ generated \ source \ aidl \ Debug \ com \ Android \ vending \ billing \ IInAppBillingService.java

This is not a headache problem, and your code runs smoothly without any intervention. Hope this helps!

enter image description here

+6
source

In Android Studio, double-click on the name of your package:

enter image description here

click "Create" and then "AIDL"

enter image description here

Hope this helps

+1
source

Usually it is generated, but not placed where it is mentioned in the textbook. If you do Ctrl + N and enter the class name in intelliJ, you can find it

0
source

Source: https://habr.com/ru/post/1267042/


All Articles