Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IInAppBillingService.aidl cannot generate Java file in Android Studio

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:

enter image description here

Could someone help me to find where I am wrong ?

Note: I am use using Android Studio.

like image 769
overallduka Avatar asked Jan 21 '14 20:01

overallduka


2 Answers

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.

like image 176
Piyush Agarwal Avatar answered Nov 10 '22 07:11

Piyush Agarwal


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

like image 3
Hector Medrano Avatar answered Nov 10 '22 06:11

Hector Medrano