Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ITelephony.aidl not compiling in eclipse

Tags:

android

aidl

I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.

But this aidl file not compiling. Is there any other step which are required?

like image 263
Pankaj Kumar Avatar asked Jul 20 '26 05:07

Pankaj Kumar


2 Answers

First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.

Hope this helps

like image 185
Deepthi Avatar answered Jul 22 '26 19:07

Deepthi


If your aidl file is showing any error in eclipse then you should consider it and post the error here but if it is not showing any error you must clean your project and build it again. After this process you must go in "gen" folder and check either this file is compiled there and any class is exist with the same name of aidl file. If it is found, its mean aidl file is compiling properly.

Thanks and Regards, Ali

like image 38
Cool Java guy מוחמד Avatar answered Jul 22 '26 20:07

Cool Java guy מוחמד



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!